summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2006-09-09 22:22:39 +0000
committermbr <mbr@FreeBSD.org>2006-09-09 22:22:39 +0000
commita71d32ed3cb35248d2a8807363bab8436dd2817c (patch)
treed8f917aff8ba19556aad7f971febd743a9b2e3b3 /lib/libc
parentcbf797decdfe7a5b55036e937598ff41c8c0bb74 (diff)
downloadFreeBSD-src-a71d32ed3cb35248d2a8807363bab8436dd2817c.zip
FreeBSD-src-a71d32ed3cb35248d2a8807363bab8436dd2817c.tar.gz
Sync with NetBSD rev. 1.10
Coverity CID 2276: Don't leak memory on error. MFC after: 1 month
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/getnetpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c
index db4dfc5..5c416fac 100644
--- a/lib/libc/rpc/getnetpath.c
+++ b/lib/libc/rpc/getnetpath.c
@@ -100,6 +100,7 @@ setnetpath()
return (NULL);
}
if ((np_sessionp->nc_handlep = setnetconfig()) == NULL) {
+ free(np_sessionp);
syslog (LOG_ERR, "rpc: failed to open " NETCONFIG);
return (NULL);
}
OpenPOWER on IntegriCloud