From owner-svn-src-all@FreeBSD.ORG Thu Mar 19 14:13:19 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F61110656C8; Thu, 19 Mar 2009 14:13:19 +0000 (UTC) (envelope-from dfr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0D43C8FC2C; Thu, 19 Mar 2009 14:13:19 +0000 (UTC) (envelope-from dfr@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2JEDIbR064389; Thu, 19 Mar 2009 14:13:18 GMT (envelope-from dfr@svn.freebsd.org) Received: (from dfr@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2JEDIFS064388; Thu, 19 Mar 2009 14:13:18 GMT (envelope-from dfr@svn.freebsd.org) Message-Id: <200903191413.n2JEDIFS064388@svn.freebsd.org> From: Doug Rabson Date: Thu, 19 Mar 2009 14:13:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190053 - head/sys/nfsserver X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 14:13:20 -0000 Author: dfr Date: Thu Mar 19 14:13:18 2009 New Revision: 190053 URL: http://svn.freebsd.org/changeset/base/190053 Log: Fix an mbuf leak in the error path. Submitted by: Rick Macklem Modified: head/sys/nfsserver/nfs_srvkrpc.c Modified: head/sys/nfsserver/nfs_srvkrpc.c ============================================================================== --- head/sys/nfsserver/nfs_srvkrpc.c Thu Mar 19 14:12:07 2009 (r190052) +++ head/sys/nfsserver/nfs_srvkrpc.c Thu Mar 19 14:13:18 2009 (r190053) @@ -397,6 +397,7 @@ nfssvc_program(struct svc_req *rqst, SVC #endif #endif inet_ntoa(sin->sin_addr), port); + m_freem(mreq); svcerr_weakauth(rqst); svc_freereq(rqst); return; @@ -405,6 +406,7 @@ nfssvc_program(struct svc_req *rqst, SVC if (proc != nfsrv_null) { if (!svc_getcred(rqst, &nd.nd_cr, &nd.nd_credflavor)) { + m_freem(mreq); svcerr_weakauth(rqst); svc_freereq(rqst); return;