summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/pc98/cbus/sio.c4
-rw-r--r--sys/pc98/pc98/sio.c4
2 files changed, 8 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);
}
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 4a455e3dc599..b49506d12a41 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);
}