From 3eed18d231c680dcabfe24b18bfa889026ba85ac Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sun, 12 Apr 2015 20:55:49 -0400 Subject: [PATCH] evas-3d: Fix Resource leak from CID1271635 Summary: This fixes a reported resource leak (by coverity). _pack_meshes_vertex_data allocates memory stored in 'vertices' however vertices is never free'd unless count > 0 @fix Signed-off-by: Chris Michael --- src/lib/evas/canvas/evas_3d_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_3d_node.c b/src/lib/evas/canvas/evas_3d_node.c index 746665e3df..c9c2fb4f40 100644 --- a/src/lib/evas/canvas/evas_3d_node.c +++ b/src/lib/evas/canvas/evas_3d_node.c @@ -570,8 +570,8 @@ _update_node_shapes(Evas_3D_Node *node) _rotate_vertices(&pd->orientation_world, count, vertices); _calculate_box(&pd->local_aabb, count, vertices); } - free(vertices); } + free(vertices); } pd->bsphere.radius = pd->local_bsphere.radius;