discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7e24e3256ff5fdeda5b55b9bc5a6134da1fba38b

commit 7e24e3256ff5fdeda5b55b9bc5a6134da1fba38b
Author: Bryce Harrington <br...@osg.samsung.com>
Date:   Fri Mar 13 20:04:16 2015 -0400

    wayland: Free temporary string on error exit
    
    Summary: wayland: Free temporary string on error exit
    
    Reviewers: cedric, devilhorns, zmike
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2154
---
 src/bin/e_comp_wl_input.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index 001c8d9..0cefac8 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -319,6 +319,7 @@ _e_comp_wl_input_keymap_update(E_Comp_Data *cdata, struct 
xkb_keymap *keymap)
    if (cdata->xkb.fd < 0)
      {
         ERR("Could not create keymap file");
+        free(tmp);
         return;
      }
 
@@ -328,6 +329,7 @@ _e_comp_wl_input_keymap_update(E_Comp_Data *cdata, struct 
xkb_keymap *keymap)
    if (cdata->xkb.area == MAP_FAILED)
      {
         ERR("Failed to mmap keymap area: %m");
+        free(tmp);
         return;
      }
 

-- 


Reply via email to