edje_cc: Fix coverity issue of accessing invalid memory.

This commit is contained in:
SubhransuSekhar Mohanty 2018-05-11 13:49:23 +09:00 committed by Hermet Park
parent 1b15c67c63
commit fd24998fa6
1 changed files with 1 additions and 7 deletions

View File

@ -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: