Skip to content
Snippets Groups Projects
Commit c06421fd authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'master-ATLASRECTS-5832' into 'master'

Fix memory leak in InDet::SiLayerBuilder::createDiscLayers. (ATLASRECTS-5832)

See merge request atlas/athena!38973
parents eccaa6eb cc4b5b73
No related branches found
No related tags found
No related merge requests found
......@@ -995,6 +995,8 @@ std::vector< const Trk::DiscLayer* >* InDet::SiLayerBuilder::createDiscLayers(st
new Trk::DiscBounds(rMin,rMax),
*passiveLayerMaterial,
1.*Gaudi::Units::mm);
// cleanup of the layer material --------------------------------------------------------------
delete passiveLayerMaterial;
} else
passiveLayer = new Trk::DiscLayer(passiveDiscTransf, new Trk::DiscBounds(rMin,rMax), 0);
ATH_MSG_DEBUG( " -> At Z - Position : " << *addLayerIter );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment