diff --git a/sys/dev/kbdmux/kbdmux.c b/sys/dev/kbdmux/kbdmux.c index 8632ad31cba9..a21b37cdf095 100644 --- a/sys/dev/kbdmux/kbdmux.c +++ b/sys/dev/kbdmux/kbdmux.c @@ -472,11 +472,6 @@ kbdmux_init(int unit, keyboard_t **kbdp, void *arg, int flags) KBDMUX_UNLOCK(state); } - if (needfree) { - free(accmap, M_KBDMUX); - free(fkeymap, M_KBDMUX); - free(keymap, M_KBDMUX); - } return (0); bad: if (needfree) {