artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dee7b1
)
Plug a memory leak, free the keymap's memory on detach.
author
mpi
<mpi@openbsd.org>
Mon, 5 May 2014 21:25:00 +0000
(21:25 +0000)
committer
mpi
<mpi@openbsd.org>
Mon, 5 May 2014 21:25:00 +0000
(21:25 +0000)
ok miod@
sys/dev/wscons/wskbd.c
patch
|
blob
|
history
diff --git
a/sys/dev/wscons/wskbd.c
b/sys/dev/wscons/wskbd.c
index
ebe3d48
..
cdcf0de
100644
(file)
--- a/
sys/dev/wscons/wskbd.c
+++ b/
sys/dev/wscons/wskbd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: wskbd.c,v 1.7
6 2014/01/26 17:48:08 miod
Exp $ */
+/* $OpenBSD: wskbd.c,v 1.7
7 2014/05/05 21:25:00 mpi
Exp $ */
/* $NetBSD: wskbd.c,v 1.80 2005/05/04 01:52:16 augustss Exp $ */
/*
@@
-624,6
+624,8
@@
wskbd_detach(struct device *self, int flags)
splx(s);
}
+ free(sc->sc_map, M_TEMP);
+
/* locate the major number */
for (maj = 0; maj < nchrdev; maj++)
if (cdevsw[maj].d_open == wskbdopen)