Free allocated buffer at siodetach().
MFC after: 3 days
This commit is contained in:
parent
b9910027dd
commit
8d1e8325c0
@ -799,6 +799,10 @@ siodetach(dev)
|
||||
} else {
|
||||
if (com->ibuf != NULL)
|
||||
free(com->ibuf, M_DEVBUF);
|
||||
#ifdef PC98
|
||||
if (com->obuf1 != NULL)
|
||||
free(com->obuf1, M_DEVBUF);
|
||||
#endif
|
||||
device_set_softc(dev, NULL);
|
||||
free(com, M_DEVBUF);
|
||||
}
|
||||
|
@ -799,6 +799,10 @@ siodetach(dev)
|
||||
} else {
|
||||
if (com->ibuf != NULL)
|
||||
free(com->ibuf, M_DEVBUF);
|
||||
#ifdef PC98
|
||||
if (com->obuf1 != NULL)
|
||||
free(com->obuf1, M_DEVBUF);
|
||||
#endif
|
||||
device_set_softc(dev, NULL);
|
||||
free(com, M_DEVBUF);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user