devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d312f94857620caec7ce1c806e4b020a48d9426c

commit d312f94857620caec7ce1c806e4b020a48d9426c
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Apr 27 11:05:30 2017 -0400

    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.mich...@samsung.com>
---
 src/bin/edje/edje_cc_handlers.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 5024236..ada698f 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -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

-- 


Reply via email to