Sync with NetBSD rev. 1.10

Coverity CID 2276: Don't leak memory on error.

MFC after:    1 month
This commit is contained in:
Martin Blapp 2006-09-09 22:22:39 +00:00
parent b0718451b8
commit dc9fde8d4f

View File

@ -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);
}