diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/lib/eina_file.c | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -400,4 +400,5 @@ 2013-02-06 Cedric Bail - * eina: counter measure denial of service on eina_hash function. + * counter measure denial of service on eina_hash function. + * fix map leak in Eina_File. @@ -4,6 +4,7 @@ Changes since Eina 1.7.5: ------------------------- * Prevent denial of service on Eina_Hash function. + * Fix map leak in Eina_File infrastructure. Changes since Eina 1.7.4: ------------------------- diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c index d34f917..68a6cce 100644 --- a/src/lib/eina_file.c +++ b/src/lib/eina_file.c @@ -1327,7 +1327,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++; |