Release allocated memory in procstat_close().

Reviewed by:	stass
This commit is contained in:
Sergey Kandaurov 2011-05-18 10:04:54 +00:00
parent cd10bffa61
commit d7b666ae97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222053

View File

@ -132,6 +132,7 @@ procstat_close(struct procstat *procstat)
assert(procstat);
if (procstat->type == PROCSTAT_KVM)
kvm_close(procstat->kd);
free(procstat);
}
struct procstat *