Merge pull request #949 from wwheart/master

kpatch-build: fix memleak in function kpatch_write_output_elf
This commit is contained in:
Josh Poimboeuf 2019-04-12 09:45:23 -05:00 committed by GitHub
commit 33a2fd51b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -814,6 +814,9 @@ void kpatch_write_output_elf(struct kpatch_elf *kelf, Elf *elf, char *outfile)
printf("%s\n",elf_errmsg(-1));
ERROR("elf_update");
}
elf_end(elfout);
close(fd);
}
/*