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
This commit is contained in:
Sungtaek Hong 2016-12-08 13:26:55 +09:00 committed by Hermet Park
parent fb3fca50c1
commit 3f0963f7b0
1 changed files with 1 additions and 0 deletions

View File

@ -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);