Fix leak in xkbcomp.c

Accidentally regressed this one briefly, oops.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
master
Daniel Stone 2012-03-14 17:04:36 +00:00
parent 54aa839c0e
commit 3d38da0c5b
1 changed files with 1 additions and 3 deletions

View File

@ -207,13 +207,11 @@ compile_keymap(XkbFile *file, const char *mapName)
if (!xkb) if (!xkb)
goto err; goto err;
return xkb;
err: err:
FreeXKBFile(file); FreeXKBFile(file);
free(scanFile); free(scanFile);
XkbFreeIncludePath(); XkbFreeIncludePath();
return NULL; return xkb;
} }
struct xkb_desc * struct xkb_desc *