edje edje_cc: fix memory leak.

This token has temporary alloc'd memory.
We should free it before loosing its ptr address.

@fix
This commit is contained in:
Hermet Park 2018-04-20 13:10:58 +09:00
parent 5ea2f94ffb
commit 215b854b54
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ code_parse_internal(Code *code)
if ((tmp->type == TOKEN_TYPE_COMMA) ||
(tmp->type == TOKEN_TYPE_SEMICOLON))
{
if (token->str) free(token->str);
free(token);
token = tmp;
break;
}