projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff9c62
)
modpost: free ns_deps_buf.p after writing ns_deps files
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Wed, 6 Nov 2019 15:19:59 +0000
(
00:19
+0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Mon, 11 Nov 2019 11:10:01 +0000
(20:10 +0900)
buf_write() allocates memory. Free it.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c
patch
|
blob
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index 1de983d9a05d503da17dbad640df6806a4f960f6..95f440d217e5a94a1022d413a968ca1322ac77fa 100644
(file)
--- a/
scripts/mod/modpost.c
+++ b/
scripts/mod/modpost.c
@@
-2549,6
+2549,8
@@
static void write_namespace_deps_files(void)
sprintf(fname, "%s.ns_deps", mod->name);
write_if_changed(&ns_deps_buf, fname);
}
+
+ free(ns_deps_buf.p);
}
struct ext_sym_list {