From 7287c40c0d550b5e4539bbe2ad7e1354e068c779 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 18 Jan 2004 17:34:11 +0000 Subject: [PATCH] Fixed a memory leak. Reported by: Stanford Metacompilation research group Reviewed by: scottl --- sys/dev/ips/ips.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 165ebb0eacbd..bf094f81c95c 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);