diff --git a/sys/dev/firewire/fwmem.c b/sys/dev/firewire/fwmem.c index a2e81e3c448..1674405f44f 100644 --- a/sys/dev/firewire/fwmem.c +++ b/sys/dev/firewire/fwmem.c @@ -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; }