aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-24 08:56:00 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-24 08:56:00 -0400
commit2a4c87bb1172f017523fdda0d1de9ca2cd0e0493 (patch)
tree0a4f1444bc716152fee17c9c0f87dcfa709b30ed
parentecore-evas-x: Fix double free (diff)
downloadefl-2a4c87bb1172f017523fdda0d1de9ca2cd0e0493.tar.gz
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
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c2
1 files changed, 2 insertions, 0 deletions
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 *