summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-04-22 15:32:49 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-04-22 19:34:59 -0400
commit3571e7364eb4fa40769c9e897d8d48bde9272b4b (patch)
tree1f5005456d6cebda0fbbaaf2b7f3451a3bcfe92b /src/lib/efreet
parent67460e2d78c88f525f15620ae7a583b21fc997d4 (diff)
efreet: fix leak in efreet_util_desktop_exec_find()
@fix
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/efreet/efreet_utils.c b/src/lib/efreet/efreet_utils.c
index 2f59272f00..809d738c84 100644
--- a/src/lib/efreet/efreet_utils.c
+++ b/src/lib/efreet/efreet_utils.c
@@ -192,8 +192,7 @@ efreet_util_desktop_exec_find(const char *exec)
192 exe = ecore_file_app_exe_get(names->array[i]); 192 exe = ecore_file_app_exe_get(names->array[i]);
193 if (!exe) continue; 193 if (!exe) continue;
194 file = ecore_file_file_get(exe); 194 file = ecore_file_file_get(exe);
195 if (!file) continue; 195 if ((!file) || (strcmp(exec, exe) && strcmp(exec, file)))
196 if (strcmp(exec, exe) && strcmp(exec, file))
197 { 196 {
198 free(exe); 197 free(exe);
199 continue; 198 continue;