summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-06-25 16:23:03 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-06-26 10:58:40 +0100
commit2e772ad6ee83f17dc5f72a41b53923d2c5c44bcb (patch)
tree3185c772607b051433c49453ff3661330ac6be76
parent33678961b6fee5f01875dc84680d1ba1700799d3 (diff)
downloadefl-2e772ad6ee83f17dc5f72a41b53923d2c5c44bcb.tar.gz
edje_cc: Fix memory leak in data_thread_script() in error case
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r--src/bin/edje/edje_cc_out.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 6ee250aa17..3f5b7fa5b8 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",