From: Davidlohr Bueso Date: Wed, 6 Jul 2011 11:26:05 +0000 (+0100) Subject: FDPIC: Fix memory leak X-Git-Tag: v3.0-rc7~47 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bcb65a797eb7c51e4f227dd19295f14d38738fee;p=~emulex%2Finfiniband.git 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 Signed-off-by: David Howells Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c index 63039ed9576..2bc5dc644b4 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