TrigAFPHypo: fix memory leak in AFPProtonTransportTool

Hello,

This MR is fixing a memory leak in AFPProtonTransportTool found by valgrind (ATR-30983). Memory was allocated in load() during the tool initialisation but never released. I replaced raw pointers with smart pointers to solve this. Valgrind confirms the leak is fixed.

Cheers, Bertrand

Edited by Bertrand Martin Dit Latour

Merge request reports

Loading