cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=62fd3c0a9bf68fe750c24ce6b9516f8dddccf41b
commit 62fd3c0a9bf68fe750c24ce6b9516f8dddccf41b Author: Cedric BAIL <[email protected]> Date: Thu Oct 30 00:36:49 2014 +0100 edje: fix use of eina_tmpstr_del after eina_shutdown. atexit could call eina_tmpstr_del after the shutdown of eina leading to the access of some random/garbage memory. @fix --- src/bin/edje/edje_cc_parse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c index cfefb45..57ddc62 100644 --- a/src/bin/edje/edje_cc_parse.c +++ b/src/bin/edje/edje_cc_parse.c @@ -851,14 +851,14 @@ parse(char *data, off_t size) DBG("Parsing done"); } -Eina_Tmpstr *clean_file = NULL; +static char *clean_file = NULL; static void clean_tmp_file(void) { if (clean_file) { unlink(clean_file); - eina_tmpstr_del(clean_file); + free(clean_file); } } @@ -929,7 +929,8 @@ compile(void) int ret; char *def; - clean_file = tmpn; + clean_file = strdup(tmpn); + eina_tmpstr_del(tmpn); close(fd); atexit(clean_tmp_file); if (!defines) --
