Fix leak in xkbcomp.c
authorDaniel Stone <daniel@fooishbar.org>
Wed, 14 Mar 2012 17:04:36 +0000 (17:04 +0000)
committerDaniel Stone <daniel@fooishbar.org>
Wed, 14 Mar 2012 17:04:36 +0000 (17:04 +0000)
Accidentally regressed this one briefly, oops.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/xkbcomp.c

index 6c01224..8ab30d4 100644 (file)
@@ -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 *