summaryrefslogtreecommitdiffstats
path: root/sys/dev/ips
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-18 17:34:11 +0000
committerru <ru@FreeBSD.org>2004-01-18 17:34:11 +0000
commitebbfae5191185f2b2c25428d6584b30ae09d428a (patch)
treeb09d947116737fd202a9744ed6fe53c5a6e82d1b /sys/dev/ips
parentd1f9a77c028e2cb7ac1491b2c7d66597aa601433 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/dev/ips/ips.c1
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);
OpenPOWER on IntegriCloud