diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index f95da60e440e..8a9be83e88c2 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1029,6 +1029,7 @@ static int load_elf_binary(struct linux_binprm *bprm) } } + kfree(interp_elf_phdata); kfree(elf_phdata); set_binfmt(&elf_format);