Release allocated memory in procstat_close().
Reviewed by: stass
This commit is contained in:
parent
cd10bffa61
commit
d7b666ae97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222053
@ -132,6 +132,7 @@ procstat_close(struct procstat *procstat)
|
||||
assert(procstat);
|
||||
if (procstat->type == PROCSTAT_KVM)
|
||||
kvm_close(procstat->kd);
|
||||
free(procstat);
|
||||
}
|
||||
|
||||
struct procstat *
|
||||
|
Loading…
Reference in New Issue
Block a user