Commit: 4f6051e8c4664a3e0efdc14de26f4e9e0ff873fd Author: Jacques Lucke Date: Wed Aug 19 18:45:48 2020 +0200 Branches: master https://developer.blender.org/rB4f6051e8c4664a3e0efdc14de26f4e9e0ff873fd
BLI: fix memory leak in delaunay 2d Differential Revision: https://developer.blender.org/D8633 =================================================================== M source/blender/blenlib/intern/delaunay_2d.c =================================================================== diff --git a/source/blender/blenlib/intern/delaunay_2d.c b/source/blender/blenlib/intern/delaunay_2d.c index baf49ddaffd..ee22859c1d6 100644 --- a/source/blender/blenlib/intern/delaunay_2d.c +++ b/source/blender/blenlib/intern/delaunay_2d.c @@ -3378,6 +3378,9 @@ CDT_result *BLI_delaunay_2d_cdt_calc(const CDT_input *input, const CDT_output_ty if (input != input_orig) { free_modified_input((CDT_input *)input); } + if (new_edge_map != NULL) { + MEM_freeN(new_edge_map); + } new_cdt_free(cdt); return result; } _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
