Plug memory leak

MFC after:	1 day
This commit is contained in:
Maksim Yevmenkin 2006-02-27 21:47:38 +00:00
parent da59fb310d
commit 40a3c5ea70

View File

@ -522,6 +522,10 @@ kbdmux_term(keyboard_t *kbd)
KBDMUX_LOCK_DESTROY(state);
bzero(state, sizeof(*state));
free(state, M_KBDMUX);
free(kbd->kb_keymap, M_KBDMUX);
free(kbd->kb_accentmap, M_KBDMUX);
free(kbd->kb_fkeytab, M_KBDMUX);
free(kbd, M_KBDMUX);
return (0);