From 256c79283797f9540e2834542e5e49ecb38c8238 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 26 Nov 2019 13:50:00 +0900 Subject: [PATCH] vg_common_json: Fix a missing of free after using Summary: iterator itr will leak by going out the function widthout freeing. Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10736 --- src/static_libs/vg_common/vg_common_json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c index 734f7f648d..abad5f3fc9 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -365,6 +365,7 @@ _reset_vg_tree(Efl_VG *node) Eina_Iterator *itr = efl_canvas_vg_container_children_get(node); EINA_ITERATOR_FOREACH(itr, child) _reset_vg_tree(child); + if (itr) eina_iterator_free(itr); } efl_gfx_entity_visible_set(node, EINA_FALSE); }