summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhransuSekhar Mohanty <sub.mohanty@samsung.com>2018-05-11 13:49:23 +0900
committerHermet Park <hermetpark@gmail.com>2018-05-11 13:49:23 +0900
commitfd24998fa6d5d6d13fd9522811f09b05a51f8018 (patch)
treef5b465f6f3416d0f4c4d4e8b184612ceae18f670
parent1b15c67c63e0c2c652d0ab39b826e777fb95381c (diff)
edje_cc: Fix coverity issue of accessing invalid memory.
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_script.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index c2f0b5c66b..2e52ac1c2f 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -93,6 +93,7 @@ code_parse_internal(Code *code)
93 free(token); 93 free(token);
94 94
95 token = tmp; 95 token = tmp;
96 tmp = NULL;
96 break; 97 break;
97 } 98 }
98 99
@@ -101,13 +102,6 @@ code_parse_internal(Code *code)
101 } 102 }
102 } 103 }
103 104
104 if (tmp)
105 {
106 if (tmp->str) free(tmp->str);
107 free(tmp);
108 tmp = NULL;
109 }
110
111 switch (token->type) 105 switch (token->type)
112 { 106 {
113 case TOKEN_TYPE_COLON: 107 case TOKEN_TYPE_COLON: