BlueBrain / Ultraliser

Reconstruction of watertight meshes, annotated volumes and center line skeletons of neuroscience spatial structures from non-watertight inputs, segmented masks, skeletons of NGV morphologies and volumes.

Home Page:https://portal.bluebrain.epfl.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultraliser::Mesh segfaults on destructor

NadirRoGue opened this issue · comments

Ultraliser::Mesh objects built from Ultraliser::NeuronMorphology objects produce a double free on the following line:

It can be tested by adding delete mesh; after this:

auto mesh = new Mesh(neuronMorphology);
_rasterize(mesh, _grid);

(The fact the mesh isnt being released is already a memory leak. There are futher memory leaks on the same function where this line belongs to).