From 2fc00da9fae273312a4f5b5cf837f11efaa93392 Mon Sep 17 00:00:00 2001 From: Mrunal Sovani Date: Fri, 9 Oct 2015 13:17:45 -0400 Subject: [PATCH] Ecore_xcb_keymap: Fix memory leak in _ecore_xcb_keymap_finilize Summary: xcb_get_modifier_mapping_reply_t *reply is obtained from xcb_get_modifier_mapping_reply and should be freed after use. Reviewers: raster, Hermet, tasn, zmike Subscribers: singh.amitesh, yashu21985, alok25, sachin.dev, cedric Differential Revision: https://phab.enlightenment.org/D3167 @fix --- src/lib/ecore_x/xcb/ecore_xcb_keymap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore_x/xcb/ecore_xcb_keymap.c b/src/lib/ecore_x/xcb/ecore_xcb_keymap.c index 35a559c..8ec7af1 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_keymap.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_keymap.c @@ -126,6 +126,7 @@ _ecore_xcb_keymap_finalize(void) ECORE_X_LOCK_NUM = _ecore_xcb_keymap_mask_get(reply, XK_Num_Lock); ECORE_X_LOCK_CAPS = _ecore_xcb_keymap_mask_get(reply, XK_Caps_Lock); ECORE_X_LOCK_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_Lock); + free(reply); } void -- 2.7.4