mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
fix: memory leak from missing deletes of raw heap allocations; big issue within create_shape() python lib
This commit is contained in:
committed by
Thomas Krijnen
parent
4594f596c2
commit
c6e3ac4155
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user