mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
Eliminate memory leak from an accidental malloc().
This commit is contained in:
parent
57bcf75fd2
commit
affde8a968
1 changed files with 0 additions and 1 deletions
|
|
@ -130,7 +130,6 @@ elf_coredump(int efd __unused, int fd, pid_t pid)
|
|||
* Allocate memory for building the header, fill it up,
|
||||
* and write it out.
|
||||
*/
|
||||
hdr = malloc(hdrsize);
|
||||
if ((hdr = malloc(hdrsize)) == NULL)
|
||||
errx(1, "out of memory");
|
||||
elf_corehdr(fd, pid, map, seginfo.count, hdr, hdrsize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue