Date: Tue, 28 Dec 2010 02:45:24 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r216752 - stable/8/lib/libproc Message-ID: <201012280245.oBS2jO1O044118@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Tue Dec 28 02:45:24 2010 New Revision: 216752 URL: http://svn.freebsd.org/changeset/base/216752 Log: MFC r216432: Fix a memory leak on the error condition Reviewed by: rpaulo Modified: stable/8/lib/libproc/proc_create.c Modified: stable/8/lib/libproc/proc_create.c ============================================================================== --- stable/8/lib/libproc/proc_create.c Tue Dec 28 02:43:28 2010 (r216751) +++ stable/8/lib/libproc/proc_create.c Tue Dec 28 02:45:24 2010 (r216752) @@ -84,7 +84,7 @@ proc_attach(pid_t pid, int flags, struct else *pphdl = phdl; out: - + proc_free(phdl); return (error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012280245.oBS2jO1O044118>