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>
This commit is contained in:
Masahiro Yamada 2019-11-07 00:19:59 +09:00
parent bff9c62b5d
commit 0241ea8cae

View File

@ -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 {