discomfitor pushed a commit to branch master.

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

commit d2a7882b732b4cc3a8e7b11ec1c4336bdc2029bb
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Sat Dec 5 13:06:03 2015 -0500

    ecore-wl2: fix use after free and leak when deleting display object
    
    ref T2919
---
 src/lib/ecore_wl2/ecore_wl2_display.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 4f612b1..289485b 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -359,10 +359,11 @@ _ecore_wl2_display_cleanup(Ecore_Wl2_Display *ewd)
 
    wl_display_flush(ewd->wl.display);
 
-   if (ewd->name) free(ewd->name);
-
    /* remove this client display from hash */
-   if (_client_displays) eina_hash_del(_client_displays, ewd->name, ewd);
+   eina_hash_del_by_key(_client_displays, ewd->name);
+
+   free(ewd->name);
+   free(ewd);
 }
 
 Ecore_Wl2_Window *

-- 


Reply via email to