From: Ran Benita Date: Tue, 22 May 2012 05:04:59 +0000 (+0300) Subject: Fix incorrect indexing while freeing X-Git-Tag: xkbcommon-0.2.0~545 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e72a6a7af512bb0e0209172066893ed00099854;p=platform%2Fupstream%2Flibxkbcommon.git Fix incorrect indexing while freeing Signed-off-by: Ran Benita --- diff --git a/src/alloc.c b/src/alloc.c index e782d57..ccdea78 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -508,7 +508,7 @@ XkbcFreeNames(struct xkb_keymap *keymap) for (i = 0; i < map->num_types; i++, type++) { int j; for (j = 0; j < type->num_levels; j++) - free(UNCONSTIFY(type->level_names[i])); + free(UNCONSTIFY(type->level_names[j])); free(type->level_names); type->level_names = NULL; }