discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3571e7364eb4fa40769c9e897d8d48bde9272b4b

commit 3571e7364eb4fa40769c9e897d8d48bde9272b4b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 22 15:32:49 2015 -0400

    efreet: fix leak in efreet_util_desktop_exec_find()
    
    @fix
---
 src/lib/efreet/efreet_utils.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/efreet/efreet_utils.c b/src/lib/efreet/efreet_utils.c
index 2f59272..809d738 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)
         exe = ecore_file_app_exe_get(names->array[i]);
         if (!exe) continue;
         file = ecore_file_file_get(exe);
-        if (!file) continue;
-        if (strcmp(exec, exe) && strcmp(exec, file))
+        if ((!file) || (strcmp(exec, exe) && strcmp(exec, file)))
         {
             free(exe);
             continue;

-- 


Reply via email to