summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@gnu.org>2011-07-06 12:26:05 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-06 12:15:16 -0700
commitbcb65a797eb7c51e4f227dd19295f14d38738fee (patch)
tree7429c3e68bbcb203089a81ac2177613f3980f77f /fs
parent23c570a67448e803408191f529ed9a83fd34a25a (diff)
downloadlinux-bcb65a797eb7c51e4f227dd19295f14d38738fee.tar.bz2
FDPIC: Fix memory leak
The shdr4extnum variable isn't being freed in the cleanup process of elf_fdpic_core_dump(). Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/binfmt_elf_fdpic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 63039ed9576f..2bc5dc644b4c 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -1864,6 +1864,7 @@ cleanup:
kfree(psinfo);
kfree(notes);
kfree(fpu);
+ kfree(shdr4extnum);
#ifdef ELF_CORE_COPY_XFPREGS
kfree(xfpu);
#endif