projects
/
platform
/
upstream
/
kbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1703103
)
lk_free: Free func_table
author
Alexey Gladkov
<gladkov.alexey@gmail.com>
Mon, 25 Feb 2013 13:20:01 +0000
(17:20 +0400)
committer
Alexey Gladkov
<gladkov.alexey@gmail.com>
Mon, 25 Feb 2013 13:20:01 +0000
(17:20 +0400)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
src/libkeymap/common.c
patch
|
blob
|
history
diff --git
a/src/libkeymap/common.c
b/src/libkeymap/common.c
index
637d295
..
294a945
100644
(file)
--- a/
src/libkeymap/common.c
+++ b/
src/libkeymap/common.c
@@
-53,4
+53,9
@@
lk_free(struct keymap *kmap)
if (kmap->key_map[i] != NULL)
free(kmap->key_map[i]);
}
+
+ for (i = 0; i < MAX_NR_FUNC; i++) {
+ if (kmap->func_table[i] != NULL)
+ free(kmap->func_table[i]);
+ }
}