forked from enlightenment/efl
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:
parent
b36833f49b
commit
2a4c87bb11
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue