aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
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 /src/bin/edje
parentedje_cc: resolve possible dereferencing freed pointer (diff)
downloadefl-fd24998fa6d5d6d13fd9522811f09b05a51f8018.tar.gz
edje_cc: Fix coverity issue of accessing invalid memory.
Diffstat (limited to 'src/bin/edje')
-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)
free(token);
token = tmp;
+ tmp = NULL;
break;
}
@@ -101,13 +102,6 @@ code_parse_internal(Code *code)
}
}
- if (tmp)
- {
- if (tmp->str) free(tmp->str);
- free(tmp);
- tmp = NULL;
- }
-
switch (token->type)
{
case TOKEN_TYPE_COLON: