Fix yet another cut-and-paste bug.

kbd was allocated from M_VKBD not from M_DEVBUF
This commit is contained in:
Maksim Yevmenkin 2005-05-20 23:29:55 +00:00
parent 071a1710d1
commit 4f39f90f5f

View File

@ -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 */
}
}