From bdeb978682602f230c0327f6bc99de24fce20ec0 Mon Sep 17 00:00:00 2001 From: brueffer Date: Tue, 5 Jan 2010 20:18:41 +0000 Subject: 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(-) (limited to 'lib/libc') diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 0563544..d1ea554 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; -- cgit v1.1