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:
authorJacques Lucke <jacques@blender.org>2020-08-19 19:45:48 +0300
committerJeroen Bakker <jeroen@blender.org>2020-08-26 12:50:21 +0300
commit42434d120ba40a22cfe0cf30e9bf82b777a8bf5d (patch)
treea44cff92b3dfb2564545827272bc107d3b818129
parentdc61f7c17178372e1c52d0e2e3ee8297d36d91b9 (diff)
BLI: fix memory leak in delaunay 2d
Differential Revision: https://developer.blender.org/D8633
-rw-r--r--source/blender/blenlib/intern/delaunay_2d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/delaunay_2d.c b/source/blender/blenlib/intern/delaunay_2d.c
index 836292e0c88..cb38af7d607 100644
--- a/source/blender/blenlib/intern/delaunay_2d.c
+++ b/source/blender/blenlib/intern/delaunay_2d.c
@@ -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;
}