aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
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 /src/bin/edje
parentedje: fix potential memory leak. (diff)
downloadefl-ecc8b479bdbb52dc91b3a163f4d126682f29615b.tar.gz
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
Diffstat (limited to 'src/bin/edje')
-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)
}
}
+ if (token)
+ {
+ if (token->str)
+ free(token->str);
+ free(token);
+ }
+
eina_array_free(name_stack);
}