summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-06 16:19:59 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-11 12:10:01 +0100
commit0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89 (patch)
tree80974456d20ce6d9d95bcc67d3a1ff008b98ab07 /scripts/mod/modpost.c
parentmodpost: do not invoke extra modpost for nsdeps (diff)
downloadlinux-0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89.tar.xz
linux-0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89.zip
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>
Diffstat (limited to '')
-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 {