diff options
Diffstat (limited to 'rcm-server-keymap.c')
-rw-r--r-- | rcm-server-keymap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rcm-server-keymap.c b/rcm-server-keymap.c index b33e262..438b3f3 100644 --- a/rcm-server-keymap.c +++ b/rcm-server-keymap.c @@ -431,6 +431,9 @@ keymaps_load(struct device *device) void keymap_free(struct keymap *keymap) { + if (!keymap) + return; + free(keymap->layout); free(keymap->name); free(keymap->description); |