summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-04-09 11:29:41 +0900
committerHermet Park <hermetpark@gmail.com>2018-04-09 11:29:41 +0900
commitecc8b479bdbb52dc91b3a163f4d126682f29615b (patch)
treeef9f21c45d494efa323c9dff35c4d74de322c346
parentd5c913c60b4f7234010800bed8fe4ddd15edbb80 (diff)
edje: fix potential memory leak.
next_token() requires free() for it's returned value and a string attribute. Here token usage didn't take care of the memory freeing. @fix
-rw-r--r--src/bin/edje/edje_cc_script.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_script.c b/src/bin/edje/edje_cc_script.c
index 657bf4fb96..94f7236189 100644
--- a/src/bin/edje/edje_cc_script.c
+++ b/src/bin/edje/edje_cc_script.c
@@ -224,6 +224,13 @@ code_parse_internal(Code *code)
224 } 224 }
225 } 225 }
226 226
227 if (token)
228 {
229 if (token->str)
230 free(token->str);
231 free(token);
232 }
233
227 eina_array_free(name_stack); 234 eina_array_free(name_stack);
228} 235}
229 236