Fixed a memory leak.

Reported by:	Stanford Metacompilation research group
Reviewed by:	scottl
This commit is contained in:
Ruslan Ermilov 2004-01-18 17:34:11 +00:00
parent bbc712e6ba
commit 7287c40c0d

View File

@ -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);