BlueBrain / BlueBrain/Ultraliser

Ultraliser::Mesh segfaults on destructor

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
36
Forks
6
PR merge metrics
No merged PRs in 30d

Description

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

https://github.com/BlueBrain/Ultraliser/blob/22128baee46dc3f6d036562f821a1be809011602/ultraliser/data/meshes/simple/MeshOptimization.cpp#L91

It can be tested by adding `delete mesh;` after this:
https://github.com/BlueBrain/Ultraliser/blob/22128baee46dc3f6d036562f821a1be809011602/ultraliser/data/volumes/Volume.cpp#L510-L511

(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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.