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>
This commit is contained in:
Davidlohr Bueso 2011-07-06 12:26:05 +01:00 committed by Linus Torvalds
parent 23c570a674
commit bcb65a797e
1 changed files with 1 additions and 0 deletions

View File

@ -1864,6 +1864,7 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
kfree(psinfo);
kfree(notes);
kfree(fpu);
kfree(shdr4extnum);
#ifdef ELF_CORE_COPY_XFPREGS
kfree(xfpu);
#endif