mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-23 00:33:21 +00:00
Free another memory leak when dealing with disk notification.
This commit is contained in:
parent
be4db476a6
commit
c1885ab8c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157889
|
@ -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);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
|
Loading…
Reference in a new issue