mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fixed a memory leak.
Reported by: Stanford Metacompilation research group Reviewed by: scottl
This commit is contained in:
parent
bbc712e6ba
commit
7287c40c0d
1 changed files with 1 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ static int ips_add_waiting_command(ips_softc_t *sc, int (*callback)(ips_command_
|
|||
mask = splbio();
|
||||
if(sc->state & IPS_OFFLINE){
|
||||
splx(mask);
|
||||
free(waiter, M_DEVBUF);
|
||||
return EIO;
|
||||
}
|
||||
command = SLIST_FIRST(&sc->free_cmd_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue