svn commit: r225027 - stable/8/lib/libproc
Andriy Gapon
avg at FreeBSD.org
Sat Aug 20 11:47:11 UTC 2011
Author: avg
Date: Sat Aug 20 11:47:11 2011
New Revision: 225027
URL: http://svn.freebsd.org/changeset/base/225027
Log:
MFC r224632: fix a serious bug in libproc's proc_attach
PR: bin/158431
Modified:
stable/8/lib/libproc/proc_create.c
Directory Properties:
stable/8/lib/libproc/ (props changed)
Modified: stable/8/lib/libproc/proc_create.c
==============================================================================
--- stable/8/lib/libproc/proc_create.c Sat Aug 20 11:44:48 2011 (r225026)
+++ stable/8/lib/libproc/proc_create.c Sat Aug 20 11:47:11 2011 (r225027)
@@ -79,12 +79,11 @@ proc_attach(pid_t pid, int flags, struct
else
phdl->status = PS_STOP;
+out:
if (error)
proc_free(phdl);
else
*pphdl = phdl;
-out:
- proc_free(phdl);
return (error);
}
More information about the svn-src-all
mailing list