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
This commit is contained in:
Christopher Michael 2019-04-24 08:56:00 -04:00
parent b36833f49b
commit 2a4c87bb11
1 changed files with 2 additions and 0 deletions

View File

@ -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 *