diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-05-18 10:04:54 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-05-18 10:04:54 +0000 |
commit | 1fb58e61b4a1b35fa5513c7e540aa41850986017 (patch) | |
tree | 2d36848413d5a067ca32256076b870c979efe572 | |
parent | fc6882fc3026eca388307b08e51e6c0ab527721d (diff) | |
download | FreeBSD-src-1fb58e61b4a1b35fa5513c7e540aa41850986017.zip FreeBSD-src-1fb58e61b4a1b35fa5513c7e540aa41850986017.tar.gz |
Release allocated memory in procstat_close().
Reviewed by: stass
-rw-r--r-- | lib/libprocstat/libprocstat.c | 1 |
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 * |