Skip to content
Snippets Groups Projects
Commit 944e98ab authored by Alaettin Serhan Mete's avatar Alaettin Serhan Mete :eagle: Committed by Julien Maurer
Browse files

MuonCondAlg: Fix memory leak in NswCalibDbAlg

MuonCondAlg: Fix memory leak in NswCalibDbAlg
parent 05308ed0
No related branches found
No related tags found
4 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!54048Daily "22.0 to master" sweep: 07/06/22,!53999MuonCondAlg: Fix memory leak in NswCalibDbAlg
......@@ -71,6 +71,7 @@ NswCalibDbAlg::processTdoPdoData(const EventContext& ctx) const {
ATH_MSG_DEBUG("CondHandle " << wrHdl.fullKey() << " is already valid."
<< " In theory this should not be called, but may happen"
<< " if multiple concurrent events are being processed out of order.");
return StatusCode::SUCCESS;
}
ATH_MSG_DEBUG("Range of time/charge output is " << wrHdl.getRange());
std::unique_ptr<NswCalibDbTimeChargeData> wrCdo{std::make_unique<NswCalibDbTimeChargeData>(m_idHelperSvc->mmIdHelper(), m_idHelperSvc->stgcIdHelper())};
......@@ -113,6 +114,7 @@ NswCalibDbAlg::processThrData(const EventContext& ctx) const {
ATH_MSG_DEBUG("CondHandle " << wrHdl.fullKey() << " is already valid."
<< " In theory this should not be called, but may happen"
<< " if multiple concurrent events are being processed out of order.");
return StatusCode::SUCCESS;
}
ATH_MSG_DEBUG("Range of threshold output is " << wrHdl.getRange());
std::unique_ptr<NswCalibDbThresholdData> wrCdo{std::make_unique<NswCalibDbThresholdData>(m_idHelperSvc->mmIdHelper(), m_idHelperSvc->stgcIdHelper())};
......@@ -198,6 +200,8 @@ NswCalibDbAlg::loadThresholdData(const EventContext& ctx, const readKey_t& readK
}
ATH_MSG_VERBOSE("Retrieved data for "<<nChns<<" channels.");
++nObjs;
delete tree;
tree = nullptr;
}
ATH_MSG_VERBOSE("Retrieved data for "<<nObjs<<" objects.");
......@@ -279,6 +283,8 @@ NswCalibDbAlg::loadTimeChargeData(const EventContext& ctx, const readKey_t& read
}
ATH_MSG_VERBOSE("Retrieved data for "<<nChns<<" channels.");
++nObjs;
delete tree;
tree = nullptr;
}
ATH_MSG_VERBOSE("Retrieved data for "<<nObjs<<" objects.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment