[PATCH kbd] fix double free
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 5 Oct 2011 13:33:46 +0000 (15:33 +0200)
committerAlexey Gladkov <gladkov.alexey@gmail.com>
Mon, 10 Oct 2011 21:15:39 +0000 (01:15 +0400)
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
src/loadkeys.y

index b70db27..c45110d 100644 (file)
@@ -352,8 +352,6 @@ static int defkeys(int fd, int kbd_mode)
                                                        j, (key_map[i])[j]);
                                }
                        }
-                       xfree(key_map[i]);
-                       xfree(keymap_was_set[i]);
 
                } else if (keymaps_line_seen && !defining[i]) {
                        /* deallocate keymap */