Skip to content
Snippets Groups Projects
Commit eb617635 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'leak.TrigConfStorage-20201221' into 'master'

TrigConfStorage: Fix memory leaks.

See merge request atlas/athena!39349
parents 5d9734b6 c0b23d3a
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39349TrigConfStorage: Fix memory leaks.
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "L1TopoMenuLoader.h"
......@@ -702,14 +702,12 @@ bool TrigConf::L1TopoMenuLoader::loadTopoConfig( TXC::L1TopoMenu& tcaTarget) {
fillQuery(query0.get(), attList0);
coral::ICursor& cursor0 = query0->execute();
TXC::L1TopoConfigGlobal* l1topoconfigglobal = new TXC::L1TopoConfigGlobal();
while(cursor0.next()){
const coral::AttributeList& row0 = cursor0.currentRow();
string tc_name = row0["TC.TC_NAME"].data<string>();
string tc_value = row0["TC.TC_VALUE"].data<string>();
l1topoconfigglobal->addTopoConfigElement(tc_name,tc_value);
tcaTarget.addL1TopoConfigGlobal(TXC::TopoConfigElement(tc_name,tc_value));
}
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "./LogicExpression.h"
......@@ -25,7 +25,9 @@ LogicExpression::LogicExpression(const std::string& name, std::ostream & o)
{}
LogicExpression::~LogicExpression() {}
LogicExpression::~LogicExpression()
{
}
bool
......@@ -295,6 +297,9 @@ LogicExpression::print(const std::string& indent) const {
void
LogicExpression::clear() {
m_State = kELEMENT;
for (LogicExpression* e : m_SubLogics) {
delete e;
}
m_SubLogics.clear();
m_Element = "";
}
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "./ThresholdConfigLoader.h"
......@@ -416,7 +416,7 @@ bool TrigConf::ThresholdConfigLoader::load( ThresholdConfig& thrConfig ) {
//tt->setNumberofValues(numberofvalues);
// trigger thresholds sorted by type
thrConfig.addTriggerThreshold(tt);
tt = new TriggerThreshold();
tt = nullptr;
}
nRowsLoop2 = row["TT.L1TT_ID"].data<int>();
......
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