commit | 0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Thu Nov 07 00:19:59 2019 +0900 |
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | Mon Nov 11 20:10:01 2019 +0900 |
tree | 80974456d20ce6d9d95bcc67d3a1ff008b98ab07 | |
parent | bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6 [diff] [blame] |
modpost: free ns_deps_buf.p after writing ns_deps files buf_write() allocates memory. Free it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1de983d..95f440d 100644 --- 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 {