Received: by mail.netbsd.org (Postfix, from userid 605) id D3E9514A435; Wed, 2 May 2012 20:47:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A8A6D14A41C for ; Wed, 2 May 2012 20:47:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id IiKsVc4hZ3Os for ; Wed, 2 May 2012 20:47:47 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 0AC2D14A38C for ; Wed, 2 May 2012 20:47:47 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4170D175DF; Wed, 2 May 2012 20:48:30 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 2 May 2012 20:48:30 +0000 From: "Mindaugas Rasiukevicius" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120502204830.4170D175DF@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Mindaugas Rasiukevicius" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: rmind Date: Wed May 2 20:48:29 UTC 2012 Modified Files: src/sys/kern: vfs_syscalls.c Log Message: do_open: move pathbuf destruction to the callers, thus simplify and fix a memory leak on error path. To generate a diff of this commit: cvs rdiff -u -r1.454 -r1.455 src/sys/kern/vfs_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.