diff options
author | nyan <nyan@FreeBSD.org> | 2002-03-10 07:22:42 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-03-10 07:22:42 +0000 |
commit | 8d1e8325c0b0bae69265f46b137c7faf33b85432 (patch) | |
tree | c8b79a330c37283e59477f94c31f5ff932786629 /sys/pc98 | |
parent | b9910027dd0cf95c5e683b596045e215cb76ba18 (diff) | |
download | FreeBSD-src-8d1e8325c0b0bae69265f46b137c7faf33b85432.zip FreeBSD-src-8d1e8325c0b0bae69265f46b137c7faf33b85432.tar.gz |
Free allocated buffer at siodetach().
MFC after: 3 days
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/cbus/sio.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/sio.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 4a455e3..b49506d 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -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); } diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 4a455e3..b49506d 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -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); } |