svn commit: r216752 - stable/8/lib/libproc
Kevin Lo
kevlo at FreeBSD.org
Tue Dec 28 02:45:25 UTC 2010
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);
}
More information about the svn-src-stable
mailing list