Commit d67e73bdbd5873df4be30e6b04910c860922f14d

Ran Benita 2012-03-01T00:10:37

Don't leak KeyNamesInfo Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
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);