Skip to content

InDetAlignmentMonitoringRun3: Fix memory leak in IDAlignMonPVBiasesAlg

This should fix the following memory leaks that started showing up in the standard SPOT tests after !57668 (merged) is merged:

--------------------------------------------------
42,912 bytes in 596 blocks are definitely lost in loss record 97,689 of 99,659
  at 0x4033F11: operator new(unsigned long) (vg_replace_malloc.c:422)
  by 0xDE1F7FBB: Trk::TrackToVertexIPEstimator::calculate(Trk::ParametersBase<5, Trk::Charged> const*, xAOD::Vertex_v1 const&) const (TrackToVertexIPEstimator.cxx:166)
  by 0xDE1F85CA: Trk::TrackToVertexIPEstimator::estimate(Trk::ParametersBase<5, Trk::Charged> const*, Trk::ParametersBase<5, Trk::Charged> const*, xAOD::Vertex_v1 const*, bool) const (TrackToVertexIPEstimator.cxx:117)
  by 0xF6FCD721: IDAlignMonPVBiasesAlg::fillHistograms(EventContext const&) const (IDAlignMonPVBiasesAlg.cxx:112)
  by 0x381443F6: Gaudi::Algorithm::sysExecute(EventContext const&) (Algorithm.cpp:366)
--------------------------------------------------

--------------------------------------------------
315,936 bytes in 4,388 blocks are definitely lost in loss record 99,079 of 99,659
  at 0x4033F11: operator new(unsigned long) (vg_replace_malloc.c:422)
  by 0xDE1F7FBB: Trk::TrackToVertexIPEstimator::calculate(Trk::ParametersBase<5, Trk::Charged> const*, xAOD::Vertex_v1 const&) const (TrackToVertexIPEstimator.cxx:166)
  by 0xDE1F85CA: Trk::TrackToVertexIPEstimator::estimate(Trk::ParametersBase<5, Trk::Charged> const*, Trk::ParametersBase<5, Trk::Charged> const*, xAOD::Vertex_v1 const*, bool) const (TrackToVertexIPEstimator.cxx:117)
  by 0xF6FCD721: IDAlignMonPVBiasesAlg::fillHistograms(EventContext const&) const (IDAlignMonPVBiasesAlg.cxx:112)
  by 0x381443F6: Gaudi::Algorithm::sysExecute(EventContext const&) (Algorithm.cpp:366)
--------------------------------------------------

Merge request reports