fix tom's fix by nmot making e segfault EVERY EXIT
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 10 Oct 2015 01:45:30 +0000 (10:45 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 10 Oct 2015 01:45:30 +0000 (10:45 +0900)
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

index cf52cd3..8025dfe 100644 (file)
@@ -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;
 }