edje: Fix resource leak

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

Fix Coverity CID1374644

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-04-27 11:05:30 -04:00
parent 70cb03711d
commit d312f94857
1 changed files with 2 additions and 0 deletions

View File

@ -9575,6 +9575,8 @@ parse_anchor_line(Edje_Part_Anchor *anchor, Edje_Part_Anchor_Line undefined)
NULL);
else if (strcmp(name, "GROUP") || param_had_quote(0))
anchor->base.line = undefined;
free(name);
}
static void