projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d909b
)
evas-3d: Fix Resource leak from CID1271635
author
Chris Michael
<cp.michael@samsung.com>
Mon, 13 Apr 2015 00:55:49 +0000
(20:55 -0400)
committer
Chris Michael
<cp.michael@samsung.com>
Mon, 13 Apr 2015 01:13:18 +0000
(21:13 -0400)
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 <cp.michael@samsung.com>
src/lib/evas/canvas/evas_3d_node.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/canvas/evas_3d_node.c
b/src/lib/evas/canvas/evas_3d_node.c
index
746665e
..
c9c2fb4
100644
(file)
--- 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;