[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220422070922.14765-1-muralianiruddhan@gmail.com>
Date: Fri, 22 Apr 2022 03:09:22 -0400
From: ashamedbit <muralianiruddhan@...il.com>
To: Andy Lutomirski <luto@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Cc: ashamedbit <muralianiruddhan@...il.com>
Subject: [PATCH] Subject: x86/vdso/vdso2c: Memory Leak fix, Fix leak of variable name in vdso2c.c
The file vdso2c.c contains a memory leak of variable 'name'.
This leak was detected by ASAN(AddressSanitizer) on local builds.
A tool called AddressWatcher automatically attempts to fix memory
leaks suggested by ASAN. The fix has been inserted to stop the
memory leak in the file vdso2c.c.
Signed-off-by: ashamedbit <muralianiruddhan@...il.com>
---
arch/x86/entry/vdso/vdso2c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/entry/vdso/vdso2c.c b/arch/x86/entry/vdso/vdso2c.c
index edfe9780f6d1..b3decd59c98e 100644
--- a/arch/x86/entry/vdso/vdso2c.c
+++ b/arch/x86/entry/vdso/vdso2c.c
@@ -246,6 +246,7 @@ int main(int argc, char **argv)
go(raw_addr, raw_len, stripped_addr, stripped_len, outfile, name);
+ free(name);
munmap(raw_addr, raw_len);
munmap(stripped_addr, stripped_len);
fclose(outfile);
--
2.25.1
Powered by blists - more mailing lists