Commit bcb65a79 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Linus Torvalds

FDPIC: Fix memory leak

The shdr4extnum variable isn't being freed in the cleanup process of
elf_fdpic_core_dump().
Signed-off-by: default avatarDavidlohr Bueso <dave@gnu.org>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 23c570a6
...@@ -1864,6 +1864,7 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm) ...@@ -1864,6 +1864,7 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
kfree(psinfo); kfree(psinfo);
kfree(notes); kfree(notes);
kfree(fpu); kfree(fpu);
kfree(shdr4extnum);
#ifdef ELF_CORE_COPY_XFPREGS #ifdef ELF_CORE_COPY_XFPREGS
kfree(xfpu); kfree(xfpu);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment