fix: memory leak from missing deletes of raw heap allocations; big issue within create_shape() python lib

This commit is contained in:
shmoodyyy
2025-03-23 14:42:12 +01:00
committed by Thomas Krijnen
parent 4594f596c2
commit c6e3ac4155
4 changed files with 15 additions and 1 deletions
+2
View File
@@ -206,6 +206,8 @@ ifcopenshell::geometry::kernels::AbstractKernel* ifcopenshell::geometry::kernels
}
#endif
if (kernels.size() != n + 1) {
for (auto k : kernels)
delete k;
throw IfcParse::IfcException("Invalid hybrid kernel " + geometry_library);
}
}