Summary:
fix the memory leak
@fix
Reviewers: Jaehyun_Cho, bu5hm4n
Reviewed By: Jaehyun_Cho
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7081
// $HOME / ~/ etc.
home = eina_environment_home_get();
if (!home)
- home = _fallback_home_dir();
+ {
+ home = _fallback_home_dir();
+ _eina_vpath_data_add("home", home);
+ free(home);
+ }
+ else
+ _eina_vpath_data_add("home", home);
// tmp dir - system wide
tmp = eina_environment_tmp_get();
-
- _eina_vpath_data_add("home", home);
_eina_vpath_data_add("tmp", tmp);
}