From: Davidlohr Bueso Date: Wed, 6 Jul 2011 11:26:05 +0000 (+0100) Subject: FDPIC: Fix memory leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcb65a797eb7c51e4f227dd19295f14d38738fee;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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