diff options
author | Robert Mustacchi <rm@fingolfin.org> | 2021-07-31 16:40:14 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@fingolfin.org> | 2021-08-17 09:03:42 -0700 |
commit | 998cfd7bd13f4dffec51769e903ceec265afce6f (patch) | |
tree | 68fab78e25ae7481f31da121425b8402edfb53c6 /usr/src/lib/libproc/common/Pcontrol.c | |
parent | 9148a91fab5cca2666b01bab18514159f4480f9e (diff) | |
download | illumos-gate-998cfd7bd13f4dffec51769e903ceec265afce6f.tar.gz |
13988 libproc leaks zoneroot
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libproc/common/Pcontrol.c')
-rw-r--r-- | usr/src/lib/libproc/common/Pcontrol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/libproc/common/Pcontrol.c b/usr/src/lib/libproc/common/Pcontrol.c index d6ea26c9ed..dfc2a404af 100644 --- a/usr/src/lib/libproc/common/Pcontrol.c +++ b/usr/src/lib/libproc/common/Pcontrol.c @@ -1210,6 +1210,8 @@ Pfree(struct ps_prochandle *P) (void) mutex_unlock(&P->proc_lock); (void) mutex_destroy(&P->proc_lock); + free(P->zoneroot); + if (P->agentctlfd >= 0) (void) close(P->agentctlfd); if (P->agentstatfd >= 0) |