Skip to contentSkip to conversation

FDPIC: fix memory leak

PATCH New Davidlohr Bueso 1 participant 1 message Jul 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FDPIC: fix memory leak

From: Davidlohr Bueso <[email protected]>

The shdr4extnum variable isn't being freed in the cleanup process of elf_fdpic_core_dump().

---
 fs/binfmt_elf_fdpic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/binfmt_elf_fdpic.c +1 -0
index 63039ed..2bc5dc6 100644
@@ -1864,6 +1864,7 @@ cleanup:
 	kfree(psinfo);
 	kfree(notes);
 	kfree(fpu);
+	kfree(shdr4extnum);
 #ifdef ELF_CORE_COPY_XFPREGS
 	kfree(xfpu);
 #endif
Signature · 1 line
1.7.4.1