Commit: 42434d120ba40a22cfe0cf30e9bf82b777a8bf5d
Author: Jacques Lucke
Date:   Wed Aug 19 18:45:48 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB42434d120ba40a22cfe0cf30e9bf82b777a8bf5d

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 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;
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to