forked from enlightenment/efl
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:
parent
70cb03711d
commit
d312f94857
|
@ -9575,6 +9575,8 @@ parse_anchor_line(Edje_Part_Anchor *anchor, Edje_Part_Anchor_Line undefined)
|
||||||
NULL);
|
NULL);
|
||||||
else if (strcmp(name, "GROUP") || param_had_quote(0))
|
else if (strcmp(name, "GROUP") || param_had_quote(0))
|
||||||
anchor->base.line = undefined;
|
anchor->base.line = undefined;
|
||||||
|
|
||||||
|
free(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue