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