mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
Merge pull request #949 from wwheart/master
kpatch-build: fix memleak in function kpatch_write_output_elf
This commit is contained in:
commit
33a2fd51b1
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user