From 3d38da0c5b92f7ec209e0d3d906b490c43429f1e Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 14 Mar 2012 17:04:36 +0000 Subject: [PATCH] Fix leak in xkbcomp.c Accidentally regressed this one briefly, oops. Signed-off-by: Daniel Stone --- src/xkbcomp/xkbcomp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 *