mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix malloc type in free().
This commit is contained in:
parent
37ee573ec6
commit
0fd466727c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue