symbols: fix memleak from default KeyInfo If the default KeyInfo gets any keysyms or actions, it needs to be free'd. Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c
index 91feea0..3ec3fc1 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -194,6 +194,7 @@ ClearSymbolsInfo(SymbolsInfo * info)
ClearKeyInfo(keyi);
darray_free(info->keys);
darray_free(info->modMaps);
+ ClearKeyInfo(&info->dflt);
}
static bool