diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-11-07 00:19:59 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-11-11 20:10:01 +0900 |
commit | 0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89 (patch) | |
tree | 80974456d20ce6d9d95bcc67d3a1ff008b98ab07 /scripts | |
parent | bff9c62b5d20d26f54bab81b33b6d9d1f9afcdf6 (diff) | |
download | linux-0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89.tar.gz linux-0241ea8cae19b49fc1b1459f7bbe9a77f4f9cc89.tar.bz2 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 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 2 |
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 { |