Date: Wed, 18 May 2011 10:04:54 +0000 (UTC) From: Sergey Kandaurov <pluknet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222053 - head/lib/libprocstat Message-ID: <201105181004.p4IA4sRF071285@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pluknet Date: Wed May 18 10:04:54 2011 New Revision: 222053 URL: http://svn.freebsd.org/changeset/base/222053 Log: Release allocated memory in procstat_close(). Reviewed by: stass Modified: head/lib/libprocstat/libprocstat.c Modified: head/lib/libprocstat/libprocstat.c ============================================================================== --- head/lib/libprocstat/libprocstat.c Wed May 18 08:26:59 2011 (r222052) +++ head/lib/libprocstat/libprocstat.c Wed May 18 10:04:54 2011 (r222053) @@ -132,6 +132,7 @@ procstat_close(struct procstat *procstat assert(procstat); if (procstat->type == PROCSTAT_KVM) kvm_close(procstat->kd); + free(procstat); } struct procstat *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105181004.p4IA4sRF071285>