Free another memory leak when dealing with disk notification.

This commit is contained in:
Paul Saab 2006-04-20 03:05:02 +00:00
parent be4db476a6
commit c1885ab8c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157889

View file

@ -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);
}
/************************************************************************