since it is only freed when your keyboard is detached.
-/* $OpenBSD: wskbd.c,v 1.77 2014/05/05 21:25:00 mpi Exp $ */
+/* $OpenBSD: wskbd.c,v 1.78 2014/05/15 09:29:38 mpi Exp $ */
/* $NetBSD: wskbd.c,v 1.80 2005/05/04 01:52:16 augustss Exp $ */
/*
splx(s);
}
- free(sc->sc_map, M_TEMP);
+ free(sc->sc_map, M_DEVBUF);
/* locate the major number */
for (maj = 0; maj < nchrdev; maj++)
-/* $OpenBSD: wskbdutil.c,v 1.11 2014/01/26 17:48:08 miod Exp $ */
+/* $OpenBSD: wskbdutil.c,v 1.12 2014/05/15 09:29:38 mpi Exp $ */
/* $NetBSD: wskbdutil.c,v 1.7 1999/12/21 11:59:13 drochner Exp $ */
/*-
if (newlen != *maplen) {
if (*maplen > 0)
- free(*map, M_TEMP);
+ free(*map, M_DEVBUF);
*maplen = newlen;
*map = malloc(newlen*sizeof(struct wscons_keymap),
- M_TEMP, M_WAITOK);
+ M_DEVBUF, M_WAITOK);
}
for (i = 0; i < *maplen; i++) {