edje_cc: Fix memory leak in data_thread_script() in error case
authorDaniel Willmann <d.willmann@samsung.com>
Tue, 25 Jun 2013 15:23:03 +0000 (16:23 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Wed, 26 Jun 2013 10:10:57 +0000 (11:10 +0100)
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/bin/edje/edje_cc_out.c

index 6ee250a..3f5b7fa 100644 (file)
@@ -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",