Skip to content

Commit bcb65a7

Browse files
Davidlohr Buesotorvalds
authored andcommitted
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>
1 parent 23c570a commit bcb65a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/binfmt_elf_fdpic.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,6 +1864,7 @@ static int elf_fdpic_core_dump(struct coredump_params *cprm)
18641864
kfree(psinfo);
18651865
kfree(notes);
18661866
kfree(fpu);
1867+
kfree(shdr4extnum);
18671868
#ifdef ELF_CORE_COPY_XFPREGS
18681869
kfree(xfpu);
18691870
#endif

0 commit comments

Comments
 (0)