aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98/cbus/sio.c
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2002-03-10 07:22:42 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2002-03-10 07:22:42 +0000
commit369bbb548d98fcdd04e87783cf184faa07184896 (patch)
treec8b79a330c37283e59477f94c31f5ff932786629 /sys/pc98/cbus/sio.c
parent6a6230d2f647ec398984f89922ccb85a7b459521 (diff)
downloadsrc-369bbb548d98fcdd04e87783cf184faa07184896.tar.gz
src-369bbb548d98fcdd04e87783cf184faa07184896.zip
Free allocated buffer at siodetach().
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=91986
Diffstat (limited to 'sys/pc98/cbus/sio.c')
-rw-r--r--sys/pc98/cbus/sio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 4a455e3dc599..b49506d12a41 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);
}