edje: Don't leak array source if we are going to exit function

This patch fixes a potential resource leak where we would previously
create a new eina_array and then possibly return from this function
(when checking validity of 's' parameter) without freeing the newly
created array.

Coverity CID1350291

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-03-10 12:13:44 -05:00
parent 3666d14980
commit 07da0ba5d7
1 changed files with 2 additions and 2 deletions

View File

@ -4217,10 +4217,10 @@ process_color_tree(char *s, const char *f_in, int ln)
Eina_List *l;
char *name;
array = eina_array_new(4);
if (!s) return;
array = eina_array_new(4);
do
{
s = color_tree_token_next(token[id], s, &ln);