edje: Fix resource leak

The function parse_str returns allocated memory which should be freed
before we exit this function.

Fix Coverity CID1374647

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-04-27 11:02:51 -04:00
parent 755577c423
commit 70cb03711d
1 changed files with 3 additions and 1 deletions

View File

@ -9611,13 +9611,15 @@ anchor_queue_part_lookup(int *part, int *counterpart, Eina_Bool counterpart_is_s
pc = eina_list_data_get(eina_list_last(edje_collections));
name = parse_str(0);
if (!strcmp(name, "GROUP") && !param_had_quote(0)) return;
if (!strcmp(name, "GROUP") && !param_had_quote(0))
goto end;
data_queue_part_lookup(pc, name, part);
if (!counterpart_is_set)
data_queue_part_lookup(pc, name, counterpart);
end:
free(name);
}