mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Free allocated buffer at siodetach().
MFC after: 3 days
This commit is contained in:
parent
6a6230d2f6
commit
369bbb548d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91986
|
@ -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 a new issue