diff options
author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-03-10 07:22:42 +0000 |
---|---|---|
committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2002-03-10 07:22:42 +0000 |
commit | 369bbb548d98fcdd04e87783cf184faa07184896 (patch) | |
tree | c8b79a330c37283e59477f94c31f5ff932786629 /sys/pc98/cbus/sio.c | |
parent | 6a6230d2f647ec398984f89922ccb85a7b459521 (diff) | |
download | src-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.c | 4 |
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); } |