Date: Tue, 5 Jan 2010 20:18:41 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r201603 - head/lib/libc/rpc Message-ID: <201001052018.o05KIfIa001900@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brueffer Date: Tue Jan 5 20:18:41 2010 New Revision: 201603 URL: http://svn.freebsd.org/changeset/base/201603 Log: Fix a double free(). PR: 142339 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 2 weeks Modified: head/lib/libc/rpc/getnetpath.c Modified: head/lib/libc/rpc/getnetpath.c ============================================================================== --- head/lib/libc/rpc/getnetpath.c Tue Jan 5 20:17:13 2010 (r201602) +++ head/lib/libc/rpc/getnetpath.c Tue Jan 5 20:18:41 2010 (r201603) @@ -101,7 +101,7 @@ setnetpath() if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) { free(np_sessionp); syslog (LOG_ERR, "rpc: failed to open " NETCONFIG); - goto failed; + return (NULL); } np_sessionp->valid = NP_VALID; np_sessionp->ncp_list = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001052018.o05KIfIa001900>