Skip to content

Commit

Permalink
13989 libproc can leak core CTF data
Browse files Browse the repository at this point in the history
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
rmustacc committed Aug 17, 2021
1 parent 50d4d24 commit 9148a91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions usr/src/lib/libproc/common/Psymtab.c
Expand Up @@ -298,10 +298,8 @@ file_info_free(struct ps_prochandle *P, file_info_t *fptr)
(void) elf_end(fptr->file_dbgelf);
if (fptr->file_dbgfile >= 0)
(void) close(fptr->file_dbgfile);
if (fptr->file_ctfp) {
ctf_close(fptr->file_ctfp);
free(fptr->file_ctf_buf);
}
ctf_close(fptr->file_ctfp);
free(fptr->file_ctf_buf);
if (fptr->file_saddrs)
free(fptr->file_saddrs);
free(fptr);
Expand Down

0 comments on commit 9148a91

Please sign in to comment.