Commit 0241ea8c authored by Masahiro Yamada's avatar Masahiro Yamada

modpost: free ns_deps_buf.p after writing ns_deps files

buf_write() allocates memory. Free it.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent bff9c62b
...@@ -2549,6 +2549,8 @@ static void write_namespace_deps_files(void) ...@@ -2549,6 +2549,8 @@ static void write_namespace_deps_files(void)
sprintf(fname, "%s.ns_deps", mod->name); sprintf(fname, "%s.ns_deps", mod->name);
write_if_changed(&ns_deps_buf, fname); write_if_changed(&ns_deps_buf, fname);
} }
free(ns_deps_buf.p);
} }
struct ext_sym_list { struct ext_sym_list {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment