svn commit: r202630 - stable/8/lib/libc/rpc
Christian Brueffer
brueffer at FreeBSD.org
Tue Jan 19 16:51:52 UTC 2010
Author: brueffer
Date: Tue Jan 19 16:51:51 2010
New Revision: 202630
URL: http://svn.freebsd.org/changeset/base/202630
Log:
MFC: r201603
Fix a double free().
Modified:
stable/8/lib/libc/rpc/getnetpath.c
Directory Properties:
stable/8/lib/libc/ (props changed)
stable/8/lib/libc/stdtime/ (props changed)
Modified: stable/8/lib/libc/rpc/getnetpath.c
==============================================================================
--- stable/8/lib/libc/rpc/getnetpath.c Tue Jan 19 15:34:16 2010 (r202629)
+++ stable/8/lib/libc/rpc/getnetpath.c Tue Jan 19 16:51:51 2010 (r202630)
@@ -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;
More information about the svn-src-all
mailing list