From 6c96113d5f8d292744aae36411d2cba0a0fd0519 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 24 Feb 2015 18:25:56 +1100 Subject: [PATCH] Modifier: no need to calloc (immediately filled) --- source/blender/modifiers/intern/MOD_solidify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c index 813ef285058..00f541f5063 100644 --- a/source/blender/modifiers/intern/MOD_solidify.c +++ b/source/blender/modifiers/intern/MOD_solidify.c @@ -659,7 +659,7 @@ static DerivedMesh *applyModifier( } if (do_clamp) { - float *vert_lens_sq = MEM_callocN(sizeof(float) * numVerts, "vert_lens"); + float *vert_lens_sq = MEM_mallocN(sizeof(float) * numVerts, "vert_lens"); const float offset = fabsf(smd->offset) * smd->offset_clamp; const float offset_sq = offset * offset; fill_vn_fl(vert_lens_sq, (int)numVerts, FLT_MAX);