Fix yet another cut-and-paste bug.
kbd was allocated from M_VKBD not from M_DEVBUF
This commit is contained in:
parent
071a1710d1
commit
4f39f90f5f
@ -673,7 +673,7 @@ vkbd_init(int unit, keyboard_t **kbdp, void *arg, int flags)
|
||||
if (fkeymap != NULL)
|
||||
free(fkeymap, M_VKBD);
|
||||
if (kbd != NULL) {
|
||||
free(kbd, M_DEVBUF);
|
||||
free(kbd, M_VKBD);
|
||||
*kbdp = NULL; /* insure ref doesn't leak to caller */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user