From 7b331f63c50f0aca103eefcb1625e91b0bced0de Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Tue, 5 Jan 2010 20:18:41 +0000 Subject: [PATCH] Fix a double free(). PR: 142339 Submitted by: Henning Petersen MFC after: 2 weeks --- lib/libc/rpc/getnetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 0563544df2a..d1ea554aa7b 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -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;