Skip to content

Commit

Permalink
libproc: fix double-free on error path
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
nickalcock authored and kvanhees committed Oct 27, 2022
1 parent e461682 commit 164fe6f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libproc/Psymtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,6 @@ Pbuild_file_symtab(struct ps_prochandle *P, file_info_t *fptr)
"likely broken: %s\n", fptr->file_pname, (err == 0) ? "<null>" :
elf_errmsg(err));
fptr->file_dyn_base = 0;
free(cache);
*jmp_pad = old_exec_jmp;
return;

Expand Down

0 comments on commit 164fe6f

Please sign in to comment.