diff options
author | ru <ru@FreeBSD.org> | 2004-01-18 17:34:11 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-01-18 17:34:11 +0000 |
commit | ebbfae5191185f2b2c25428d6584b30ae09d428a (patch) | |
tree | b09d947116737fd202a9744ed6fe53c5a6e82d1b /sys/dev/ips/ips.c | |
parent | d1f9a77c028e2cb7ac1491b2c7d66597aa601433 (diff) | |
download | FreeBSD-src-ebbfae5191185f2b2c25428d6584b30ae09d428a.zip FreeBSD-src-ebbfae5191185f2b2c25428d6584b30ae09d428a.tar.gz |
Fixed a memory leak.
Reported by: Stanford Metacompilation research group
Reviewed by: scottl
Diffstat (limited to 'sys/dev/ips/ips.c')
-rw-r--r-- | sys/dev/ips/ips.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 165ebb0..bf094f8 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -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); |