raster pushed a commit to branch master.

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

commit 55e49f12bf6af2e608d0e34f4452fac0ffe31f4c
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Oct 10 10:45:30 2015 +0900

    fix tom's fix by nmot making e segfault EVERY EXIT
    
    when fixing something like a leak .. it might be good to fix it to not
    CRASH 100% of the time. a leak (minor) is better than a crash by far.
    
    the strings in the list are stringshared.
    
    fixes 896c18045aafb9c677d8d41b4876c47db2b4d5ce
---
 src/modules/eeze/sensor/udev/udev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/modules/eeze/sensor/udev/udev.c 
b/src/modules/eeze/sensor/udev/udev.c
index cf52cd3..8025dfe 100644
--- a/src/modules/eeze/sensor/udev/udev.c
+++ b/src/modules/eeze/sensor/udev/udev.c
@@ -48,8 +48,7 @@ udev_shutdown(void)
 {
    char *data;
 
-   EINA_LIST_FREE(devices, data)
-     free(data);
+   EINA_LIST_FREE(devices, data) eina_stringshare_del(data);
 
    return EINA_TRUE;
 }

-- 


Reply via email to