From a64178b45f3f78736c57015141832c8093da946f Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 9 Mar 2012 18:29:51 +0100 Subject: [PATCH] setnetpath(3): Fix a double free(). np_sessionp is free()'d after the failed: label. --- lib/libc/rpc/getnetpath.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 6c06b0565a..f7365dab41 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -95,7 +95,6 @@ setnetpath(void) return (NULL); } if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) { - free(np_sessionp); syslog (LOG_ERR, "rpc: failed to open " NETCONFIG); goto failed; } -- 2.41.0