Fixed a memory leak.
Reported by: Stanford Metacompilation research group Reviewed by: scottl
This commit is contained in:
parent
bbc712e6ba
commit
7287c40c0d
@ -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 New Issue
Block a user