forked from enlightenment/efl
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:
parent
fb3fca50c1
commit
3f0963f7b0
|
@ -504,6 +504,7 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
eina_hash_free(old_file_ids->hash);
|
eina_hash_free(old_file_ids->hash);
|
||||||
free(old_file_ids);
|
free(old_file_ids);
|
||||||
|
old_file_ids = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
eina_hash_free(file_ids);
|
eina_hash_free(file_ids);
|
||||||
|
|
Loading…
Reference in New Issue