asdfuser pushed a commit to branch master.

commit cd980c4beaabd473b58363d86b8f05ab1d3b9a76
Author: Daniel Willmann <[email protected]>
Date:   Tue Jun 25 16:23:03 2013 +0100

    edje_cc: Fix memory leak in data_thread_script() in error case
    
    Signed-off-by: Daniel Willmann <[email protected]>
---
 src/bin/edje/edje_cc_out.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 6ee250a..3f5b7fa 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -1181,6 +1181,7 @@ data_thread_script(void *data, Ecore_Thread *thread 
EINA_UNUSED)
                            "Unable to read all of script object \"%s\"",
                            sc->tmpo);
                   sc->errstr = strdup(buf);
+                  free(dat);
                   return;
                }
             snprintf(buf, sizeof(buf), "edje/scripts/embryo/compiled/%i",

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to