devilhorns pushed a commit to branch master.

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

commit 2a4c87bb1172f017523fdda0d1de9ca2cd0e0493
Author: Christopher Michael <cp.mich...@samsung.com>
Date:   Wed Apr 24 08:56:00 2019 -0400

    static_libs/vg_common: Fix resource leak
    
    Coverity reports a resource leak here. The function _create_node
    returns allocated storage which should be freed when we are finished
    with it.
    
    Fixes CID1382215
    
    @fix
---
 src/static_libs/vg_common/vg_common_svg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/static_libs/vg_common/vg_common_svg.c 
b/src/static_libs/vg_common/vg_common_svg.c
index 9cb4b9e246..00e7e0441c 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -1060,6 +1060,8 @@ vg_common_create_svg_node_helper(Efl_VG *vg, Svg_Node 
*parent)
         memcpy(svg_node->node.command.points, points, sizeof (double) * 
points_count);
         _apply_svg_property(svg_node, vg);
      }
+
+   free(svg_node);
 }
 
 Svg_Node *

-- 


Reply via email to