Closed wdconinc closed 1 year ago
This is not fixed. See logs at https://github.com/eic/EICrecon/actions/runs/4320254537. Because of the ad hoc type that is needed to handle return of associations in jana factories, this isn't as easy a fix as elsewhere.
Moving to podio collections, which handle memory management, this issue has been resolved.
Environment: (where does this bug occur, have you tried other environments)
main
for latest released): mainHEAD
for the most recent on git): HEADSteps to reproduce: (give a step by step account of how to trigger the bug)
Expected Result: (what do you expect when you execute the steps above)
No memory leaks.
Actual Result: (what do you get when you execute the steps above)
Multiple memory leaks reported in
ParticlesWithTruthPID.cpp:160
:Additional context
I think you're relying on the allocation in
associations.emplace_back
being cleaned up after transferring ownership with the move in the return (where thestd::move
has probably no effect anyway). But there is no automatic cleanup of the contents of thestd::vector<edm4eic::MCRecoParticleAssociation *> associations
, so that's just leaking again.