discomfitor pushed a commit to branch efl-1.15.

http://git.enlightenment.org/core/efl.git/commit/?id=c94dc8c0f75be18d903a200b1fc5811dd207a0b1

commit c94dc8c0f75be18d903a200b1fc5811dd207a0b1
Author: Mrunal Sovani <mruna...@samsung.com>
Date:   Fri Oct 9 13:17:45 2015 -0400

    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

-- 


Reply via email to