aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/lib/eina/eina_file.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ea1076661..ffa5bbc40 100644
--- 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 08e5585e9..72116fb3d 100644
--- 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.
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index 98dff3695..271e4ce27 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -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++;