From 52f33de9f81ecedeaa89628cde77b13e1c7d47d4 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Sat, 19 Dec 2020 16:45:59 +0100 Subject: [PATCH] JetTagCalibration: Trying to fix memory leak. In JetTagCalibCondAlg, make sure that the TObjArray we read owns its elements. --- .../JetTagging/JetTagCalibration/src/JetTagCalibCondAlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PhysicsAnalysis/JetTagging/JetTagCalibration/src/JetTagCalibCondAlg.cxx b/PhysicsAnalysis/JetTagging/JetTagCalibration/src/JetTagCalibCondAlg.cxx index d355ea90553..c44cbab6be9 100644 --- a/PhysicsAnalysis/JetTagging/JetTagCalibration/src/JetTagCalibCondAlg.cxx +++ b/PhysicsAnalysis/JetTagging/JetTagCalibration/src/JetTagCalibCondAlg.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ /* * */ @@ -560,6 +560,7 @@ namespace Analysis { TObjArray * toa = dynamic_cast<TObjArray*>(hPointer.get()); if (toa) { ATH_MSG_DEBUG("#BTAG# The TObjArray to build the input variables of BDT for " << tagger<< " is valid"); + toa->SetOwner (true); std::vector<std::string> inputVars; inputVars.clear(); std::string commaSepVars=""; TObjString *tos= nullptr; -- GitLab