mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
c4ecd13b77
commit
7b331f63c5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue