]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
modpost: free ns_deps_buf.p after writing ns_deps files
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 6 Nov 2019 15:19:59 +0000 (00:19 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Nov 2019 11:10:01 +0000 (20:10 +0900)
buf_write() allocates memory. Free it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c

index 1de983d9a05d503da17dbad640df6806a4f960f6..95f440d217e5a94a1022d413a968ca1322ac77fa 100644 (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 {