efl/eina: fix map leak in Eina_File.
authorCedric BAIL <cedric.bail@free.fr>
Wed, 6 Feb 2013 09:28:00 +0000 (09:28 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Wed, 6 Feb 2013 09:28:00 +0000 (09:28 +0000)
SVN revision: 83668

ChangeLog
NEWS
src/lib/eina/eina_file.c

index ea10766612aeb5a2baeeba091366d0fd6d5da149..ffa5bbc40254a81e04e469666b7d687dabbed73b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-02-06  Cedric Bail
+
+       * eina: fix map leak in Eina_File.
+
 2013-02-05  Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
 
         * ecore_wayland: Fix return type of function ecore_wl_outputs_get()
diff --git a/NEWS b/NEWS
index 08e5585e9f68e2e0efa490bc82e00c15d6706be6..72116fb3ddd085f11241763e5c69bfa5a079de7f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -149,3 +149,4 @@ Fixes:
     * Fix cache miss when active edje hash is empty.
     * Prevent denial of service on eina_hash function.
     * Fix return type of function ecore_wl_outputs_get().
+    * Fix memleak in Eina_File.
index 98dff3695a3712cb049d76e3c5f04937a911f67a..271e4ce27daa12d10ed501b8bb6e922a130e5fb7 100644 (file)
@@ -1336,7 +1336,7 @@ eina_file_map_new(Eina_File *file, Eina_File_Populate rule,
         if (map->map == MAP_FAILED) goto on_error;
 
         eina_hash_add(file->map, &key, map);
-        eina_hash_direct_add(file->rmap, map->map, map);
+        eina_hash_direct_add(file->rmap, &map->map, map);
      }
 
    map->refcount++;