From 4a57a56f873ef1beed6e49c5c346704800fd4ef0 Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Sun, 8 Oct 2023 00:21:31 +0200 Subject: [PATCH] Fix #113387: Memory leak with Separate by Loose Parts Mistake in 118ec54ec738293b2f14f7edcdd1d83bd357b6ba Free the `groups` array before returning. Pull Request: https://projects.blender.org/blender/blender/pulls/113402 --- source/blender/editors/mesh/editmesh_tools.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/mesh/editmesh_tools.cc b/source/blender/editors/mesh/editmesh_tools.cc index 62a5b8946fb..9e23e816763 100644 --- a/source/blender/editors/mesh/editmesh_tools.cc +++ b/source/blender/editors/mesh/editmesh_tools.cc @@ -4742,6 +4742,7 @@ static bool mesh_separate_loose( BM_mesh_bm_to_me(nullptr, bm_old, me_old, &to_mesh_params); } + MEM_freeN(groups); return result; }