Date: Tue, 19 Jan 2010 16:58:51 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r202631 - stable/7/lib/libc/rpc Message-ID: <201001191658.o0JGwppk051606@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brueffer Date: Tue Jan 19 16:58:50 2010 New Revision: 202631 URL: http://svn.freebsd.org/changeset/base/202631 Log: MFC: r201603 Fix a double free(). Modified: stable/7/lib/libc/rpc/getnetpath.c Directory Properties: stable/7/lib/libc/ (props changed) stable/7/lib/libc/stdtime/ (props changed) Modified: stable/7/lib/libc/rpc/getnetpath.c ============================================================================== --- stable/7/lib/libc/rpc/getnetpath.c Tue Jan 19 16:51:51 2010 (r202630) +++ stable/7/lib/libc/rpc/getnetpath.c Tue Jan 19 16:58:50 2010 (r202631) @@ -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?201001191658.o0JGwppk051606>