summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-06 18:19:59 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-11 14:10:01 +0300
commit0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89 (patch)
tree80974456d20ce6d9d95bcc67d3a1ff008b98ab07
parentbff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6 (diff)
downloadlinux-0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89.tar.xz
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>
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 1de983d9a05d..95f440d217e5 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 {