aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje/edje_cc_script.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-04-20 11:44:43 +0900
committerHermet Park <hermetpark@gmail.com>2018-04-20 11:44:43 +0900
commit5ea2f94ffb36397523a2dfda6d9891aaf619927a (patch)
tree56ec0c65fb0c4d359d62eb4ad659cd7043061678 /src/bin/edje/edje_cc_script.c
parentefl_mono: Fix after prop get const change (diff)
downloadefl-5ea2f94ffb36397523a2dfda6d9891aaf619927a.tar.gz
edje: Don't access a garbage pointer.
set null to avoid multiple access. At 221 line, it tries to free tmp again.
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index 94f7236189..15da701d77 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -102,6 +102,7 @@ code_parse_internal(Code *code)
{
if (tmp->str) free(tmp->str);
free(tmp);
+ tmp = NULL;
}
switch (token->type)