summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2018-09-21 15:05:58 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-09-21 15:05:58 +0900
commit54c68e445b8d8540025734c0459db6bd2366b899 (patch)
tree2bbedef2117a16a96395dd44dc46416d6b2822a1 /src/lib/eina
parenta6629d86c9664d906a7f5a6bfa0dc61895fa1a91 (diff)
eina_vpath: fix the memory leak
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
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_vpath.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index b1b6af5284..16d0eedb5f 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -160,12 +160,16 @@ _eina_vpath_interface_sys_init(void)
160 // $HOME / ~/ etc. 160 // $HOME / ~/ etc.
161 home = eina_environment_home_get(); 161 home = eina_environment_home_get();
162 if (!home) 162 if (!home)
163 home = _fallback_home_dir(); 163 {
164 home = _fallback_home_dir();
165 _eina_vpath_data_add("home", home);
166 free(home);
167 }
168 else
169 _eina_vpath_data_add("home", home);
164 170
165 // tmp dir - system wide 171 // tmp dir - system wide
166 tmp = eina_environment_tmp_get(); 172 tmp = eina_environment_tmp_get();
167
168 _eina_vpath_data_add("home", home);
169 _eina_vpath_data_add("tmp", tmp); 173 _eina_vpath_data_add("tmp", tmp);
170} 174}
171 175