From: Ran Benita Date: Sun, 13 May 2012 07:38:51 +0000 (+0300) Subject: Fix a memleak X-Git-Tag: xkbcommon-0.2.0~576 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b571b8345928056aaf172d01a9f8c0aa84e484cf;p=platform%2Fupstream%2Flibxkbcommon.git Fix a memleak Introduced in 38cb639082ec4b31725d4ce4e35af63938691631. Signed-off-by: Ran Benita --- diff --git a/src/alloc.c b/src/alloc.c index 2d7025c..e782d57 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -346,7 +346,7 @@ XkbcFreeServerMap(struct xkb_keymap *keymap) { struct xkb_server_map * map; - if (keymap || keymap->server) + if (!keymap || !keymap->server) return; map = keymap->server;