Skip to content

Commit 2ebdec4

Browse files
committed
ITS: additional deallocation before we copy
1 parent c393052 commit 2ebdec4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,9 @@ void TrackerTraits<nLayers>::findRoads(const int iteration)
659659
deepVectorClear(updatedCellId); /// tame the memory peaks
660660
processNeighbours(iLayer, --level, lastCellSeed, lastCellId, updatedCellSeed, updatedCellId);
661661
}
662+
deepVectorClear(lastCellId); /// tame the memory peaks
663+
deepVectorClear(lastCellSeed); /// tame the memory peaks
664+
662665
std::copy_if(updatedCellSeed.begin(), updatedCellSeed.end(), std::back_inserter(trackSeeds), [&](const CellSeed& seed) {
663666
return seed.getQ2Pt() <= 1.e3 && seed.getChi2() <= mTrkParams[0].MaxChi2NDF * ((startLevel + 2) * 2 - 5);
664667
});

0 commit comments

Comments
 (0)