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:
parent
23c570a674
commit
bcb65a797e
|
@ -1864,6 +1864,7 @@ cleanup:
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue