From 2a4c87bb1172f017523fdda0d1de9ca2cd0e0493 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 24 Apr 2019 08:56:00 -0400 Subject: [PATCH] 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 *