projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54aa839
)
Fix leak in xkbcomp.c
author
Daniel Stone
<daniel@fooishbar.org>
Wed, 14 Mar 2012 17:04:36 +0000
(17:04 +0000)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/xkbcomp/xkbcomp.c
b/src/xkbcomp/xkbcomp.c
index
6c01224
..
8ab30d4
100644
(file)
--- 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 *