diff options
author | ps <ps@FreeBSD.org> | 2006-04-20 03:05:02 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2006-04-20 03:05:02 +0000 |
commit | d4df787e9ed0a049b2caca94294114db3c959deb (patch) | |
tree | ef9c645aaaa0de0bdeb8a78ecdf9bbddc3bc7d96 /sys/dev/ciss/ciss.c | |
parent | c5ebe3714a388f835b18e98181c2a1485dd3555b (diff) | |
download | FreeBSD-src-d4df787e9ed0a049b2caca94294114db3c959deb.zip FreeBSD-src-d4df787e9ed0a049b2caca94294114db3c959deb.tar.gz |
Free another memory leak when dealing with disk notification.
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r-- | sys/dev/ciss/ciss.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 47dca32..2071e74 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -3595,7 +3595,7 @@ ciss_notify_physical(struct ciss_softc *sc, struct ciss_notify *cn) static void ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn) { - struct ciss_lun_report *cll; + struct ciss_lun_report *cll = NULL; int bus, target; int s; @@ -3633,6 +3633,9 @@ ciss_notify_hotplug(struct ciss_softc *sc, struct ciss_notify *cn) ciss_printf(sc, "Unknown hotplug event %d\n", cn->subclass); return; } + + if (cll != NULL) + free(cll, CISS_MALLOC_CLASS); } /************************************************************************ |