Fix malloc type in free().

This commit is contained in:
Hidetoshi Shimokawa 2004-11-10 06:21:47 +00:00
parent 37ee573ec6
commit 0fd466727c

View File

@ -309,7 +309,7 @@ fwmem_close (struct cdev *dev, int flags, int fmt, fw_proc *td)
if (fwmem_debug)
printf("%s: refcount=%d\n", __func__, fms->refcount);
if (fms->refcount < 1) {
free(dev->si_drv1, M_FW);
free(dev->si_drv1, M_FWMEM);
dev->si_drv1 = NULL;
}