edje_cc: Fix memory leak in data_thread_script() in error case

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
Daniel Willmann 2013-06-25 16:23:03 +01:00
parent 33678961b6
commit 2e772ad6ee
1 changed files with 1 additions and 0 deletions

View 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",