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; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"