devilhorns pushed a commit to branch master.

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

commit 70cb03711d6f334e73a4ed87cbbb9fc4cee4271e
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Apr 27 11:02:51 2017 -0400

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

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

-- 


Reply via email to