Plug memory leak
MFC after: 1 day
This commit is contained in:
parent
da59fb310d
commit
40a3c5ea70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156086
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user