summaryrefslogtreecommitdiff
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
parent1179058017e566e5700f6d366b7f1d75a11ab60c (diff)
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 'src/bin/edje/edje_cc_script.c')
-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 94f7236..15da701 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)
102 { 102 {
103 if (tmp->str) free(tmp->str); 103 if (tmp->str) free(tmp->str);
104 free(tmp); 104 free(tmp);
105 tmp = NULL;
105 } 106 }
106 107
107 switch (token->type) 108 switch (token->type)