summaryrefslogtreecommitdiffstats
path: root/lib/libprocstat/libprocstat.c
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2011-05-18 10:04:54 +0000
committerpluknet <pluknet@FreeBSD.org>2011-05-18 10:04:54 +0000
commit1fb58e61b4a1b35fa5513c7e540aa41850986017 (patch)
tree2d36848413d5a067ca32256076b870c979efe572 /lib/libprocstat/libprocstat.c
parentfc6882fc3026eca388307b08e51e6c0ab527721d (diff)
downloadFreeBSD-src-1fb58e61b4a1b35fa5513c7e540aa41850986017.zip
FreeBSD-src-1fb58e61b4a1b35fa5513c7e540aa41850986017.tar.gz
Release allocated memory in procstat_close().
Reviewed by: stass
Diffstat (limited to 'lib/libprocstat/libprocstat.c')
-rw-r--r--lib/libprocstat/libprocstat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
index 8440bec..384fe73 100644
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -132,6 +132,7 @@ procstat_close(struct procstat *procstat)
assert(procstat);
if (procstat->type == PROCSTAT_KVM)
kvm_close(procstat->kd);
+ free(procstat);
}
struct procstat *
OpenPOWER on IntegriCloud