summaryrefslogtreecommitdiff
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
parentb36833f49b87b985d34ed1f52ed33a0192a53237 (diff)
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 9cb4b9e..00e7e04 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)
1060 memcpy(svg_node->node.command.points, points, sizeof (double) * points_count); 1060 memcpy(svg_node->node.command.points, points, sizeof (double) * points_count);
1061 _apply_svg_property(svg_node, vg); 1061 _apply_svg_property(svg_node, vg);
1062 } 1062 }
1063
1064 free(svg_node);
1063} 1065}
1064 1066
1065Svg_Node * 1067Svg_Node *