From owner-svn-src-stable-8@FreeBSD.ORG Sat Aug 20 11:47:11 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86129106564A; Sat, 20 Aug 2011 11:47:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 74D2C8FC08; Sat, 20 Aug 2011 11:47:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7KBlBDZ050434; Sat, 20 Aug 2011 11:47:11 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7KBlBJC050432; Sat, 20 Aug 2011 11:47:11 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201108201147.p7KBlBJC050432@svn.freebsd.org> From: Andriy Gapon Date: Sat, 20 Aug 2011 11:47:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225027 - stable/8/lib/libproc X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 11:47:11 -0000 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); }