aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2016-12-08 13:26:55 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-12-08 13:26:55 +0900
commit3f0963f7b020bd83da348615e7582ebef1a4a5d0 (patch)
tree9fc3a2ff7121214c5fecb0a36fe4f234b9369b2c /src/bin/efreet
parentevas fb engine - fix build break cedric added... (diff)
downloadefl-3f0963f7b020bd83da348615e7582ebef1a4a5d0.tar.gz
efreet_desktop: fix potential error in efreet_desktop_cache_create
Summary: - old_file_ids is freed but not set as NULL. If it goes to error code, old_file_ids will be freed again. Reviewers: jpeg, cedric, Hermet Reviewed By: Hermet Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4467
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index c6b1877d3c..fe4a47655c 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -504,6 +504,7 @@ main(int argc, char **argv)
{
eina_hash_free(old_file_ids->hash);
free(old_file_ids);
+ old_file_ids = NULL;
}
eina_hash_free(file_ids);