Fix a double free().
PR: 142339 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 2 weeks
This commit is contained in:
parent
e1cc3e0a9a
commit
bdeb978682
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user