aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2013-02-06 09:28:00 +0000
committerCedric BAIL <cedric.bail@free.fr>2013-02-06 09:28:00 +0000
commit1cb8c3c0060fa817cab72c345096fc2d74e4bb43 (patch)
tree3eeb7952827f018d668fe25191c640dbc61c50b9
parent57badb0587386f2eeb8dbe009ba2eb8a8892f6d0 (diff)
downloadefl-1cb8c3c0060fa817cab72c345096fc2d74e4bb43.tar.gz
efl-1cb8c3c0060fa817cab72c345096fc2d74e4bb43.tar.xz
efl-1cb8c3c0060fa817cab72c345096fc2d74e4bb43.zip
efl/eina: fix map leak in Eina_File.
SVN revision: 83668
-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++;