BLI: fix memory leak in delaunay 2d

Differential Revision: https://developer.blender.org/D8633
This commit is contained in:
Jacques Lucke 2020-08-19 18:45:48 +02:00 committed by Jeroen Bakker
parent dc61f7c171
commit 42434d120b
Notes: blender-bot 2023-02-14 08:45:09 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 3 additions and 0 deletions

View File

@ -3379,6 +3379,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;
}