Commit 3d38da0c5b92f7ec209e0d3d906b490c43429f1e

Daniel Stone 2012-03-14T17:04:36

Fix leak in xkbcomp.c Accidentally regressed this one briefly, oops. Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/xkbcomp/xkbcomp.c b/src/xkbcomp/xkbcomp.c
index 6c01224..8ab30d4 100644
--- a/src/xkbcomp/xkbcomp.c
+++ b/src/xkbcomp/xkbcomp.c
@@ -207,13 +207,11 @@ compile_keymap(XkbFile *file, const char *mapName)
     if (!xkb)
         goto err;
 
-    return xkb;
-
 err:
     FreeXKBFile(file);
     free(scanFile);
     XkbFreeIncludePath();
-    return NULL;
+    return xkb;
 }
 
 struct xkb_desc *