Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/modifiers/intern/MOD_smooth.c')
-rw-r--r--source/blender/modifiers/intern/MOD_smooth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_smooth.c b/source/blender/modifiers/intern/MOD_smooth.c
index 618ccc78279..c5011ed15c1 100644
--- a/source/blender/modifiers/intern/MOD_smooth.c
+++ b/source/blender/modifiers/intern/MOD_smooth.c
@@ -106,9 +106,7 @@ static void smoothModifier_do(
uint *num_accumulated_vecs = MEM_calloc_arrayN(
(size_t)numVerts, sizeof(*num_accumulated_vecs), __func__);
if (!num_accumulated_vecs) {
- if (accumulated_vecs) {
- MEM_freeN(accumulated_vecs);
- }
+ MEM_freeN(accumulated_vecs);
return;
}