TrigT2CaloCommon: fix memory leak in TrigCaloDataAccessSvc
TrigT2CaloCommon: fix memory leak in TrigCaloDataAccessSvc Hello, This MR fixes a memory leak in TrigCaloDataAccessSvc found by valgrind (ATR-30983). In `lateInit`, there are about 250 cells created with `new`, but memory is not released in `finalize` prior to the deletion of `cache->fullcont`. In this MR, a vector is added to keep track of the position of these cells in the container, such that we can free memory in `finalize`. Valgrind confirms this fixes the memory leak. Note that there is no leak in the event loop. Cheers, Bertrand
parent
2a76f8bd
No related branches found
No related tags found
Showing
- Trigger/TrigAlgorithms/TrigT2CaloCommon/src/TrigCaloDataAccessSvc.cxx 6 additions, 3 deletions...Algorithms/TrigT2CaloCommon/src/TrigCaloDataAccessSvc.cxx
- Trigger/TrigAlgorithms/TrigT2CaloCommon/src/TrigCaloDataAccessSvc.h 3 additions, 3 deletions...igAlgorithms/TrigT2CaloCommon/src/TrigCaloDataAccessSvc.h
Loading
Please register or sign in to comment