Sync with NetBSD rev. 1.10
Coverity CID 2276: Don't leak memory on error. MFC after: 1 month
This commit is contained in:
parent
b0718451b8
commit
dc9fde8d4f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user