Fix memleak in desktop cache create
authorSebastian Dransfeld <sd@tango.flipp.net>
Thu, 10 Feb 2011 14:25:13 +0000 (14:25 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Thu, 10 Feb 2011 14:25:13 +0000 (14:25 +0000)
SVN revision: 56909

legacy/efreet/ChangeLog
legacy/efreet/src/bin/efreet_desktop_cache_create.c

index 4eecae0..63e7d58 100644 (file)
@@ -72,3 +72,4 @@
        * Move all eet cache handling to efreet_cache.c
        * Free hashes on init error
        * efreet_cache_icon -> efreet_icon for functions in efreet_icon.c
+       * Fix memleak in desktop cache create
index 68ac34c..2b5df70 100644 (file)
@@ -392,6 +392,7 @@ main(int argc, char **argv)
             array.array[array.array_count++] = str; \
         eina_iterator_free(it); \
         eet_data_write(util_ef, efreet_array_string_edd(), #_hash "_list", &array, 1); \
+        free(array.array); \
     }
     STORE_HASH_ARRAY(mime_types);
     STORE_HASH_ARRAY(categories);