From 4b4bb410e04ee83327171723395005e4c6ecfc32 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 15 Jun 2014 14:36:33 +1000 Subject: Curve: replace calloc with malloc for values immediately written into --- source/blender/blenkernel/intern/mball.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/mball.c') diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c index fc6f9149841..47aeb18ff36 100644 --- a/source/blender/blenkernel/intern/mball.c +++ b/source/blender/blenkernel/intern/mball.c @@ -2361,8 +2361,8 @@ void BKE_mball_polygonize(EvaluationContext *eval_ctx, Scene *scene, Object *ob, process.indices = NULL; a = process.vertices.count; - dl->verts = co = MEM_mallocN(sizeof(float) * 3 * a, "mballverts"); - dl->nors = no = MEM_mallocN(sizeof(float) * 3 * a, "mballnors"); + dl->verts = co = MEM_mallocN(sizeof(float[3]) * a, "mballverts"); + dl->nors = no = MEM_mallocN(sizeof(float[3]) * a, "mballnors"); for (a = 0; a < process.vertices.count; ptr++, a++, no += 3, co += 3) { copy_v3_v3(co, ptr->co); -- cgit v1.2.3