Don't leak KeyNamesInfo Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/keycodes.c b/src/xkbcomp/keycodes.c
index bd8b837..91008fc 100644
--- a/src/xkbcomp/keycodes.c
+++ b/src/xkbcomp/keycodes.c
@@ -931,6 +931,7 @@ CompileKeycodes(XkbFile *file, struct xkb_desc * xkb, unsigned merge)
}
if (info.aliases)
ApplyAliases(xkb, False, &info.aliases);
+ ClearKeyNamesInfo(&info);
return True;
}
ClearKeyNamesInfo(&info);