Date: Sat, 20 Aug 2011 11:47:11 +0000 (UTC) From: Andriy Gapon <avg@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: r225027 - stable/8/lib/libproc Message-ID: <201108201147.p7KBlBJC050432@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108201147.p7KBlBJC050432>