Skip to content
Snippets Groups Projects

Fix segfault in LumiPutResult when processed by genconf

Merged Marco Clemencic requested to merge fix-hlt2012-memory-problem into hlt2012-patches
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -37,7 +37,7 @@ DECLARE_ALGORITHM_FACTORY( LumiPutResult );
//=============================================================================
LumiPutResult::LumiPutResult( const std::string& name,
ISvcLocator* pSvcLocator)
: GaudiAlgorithm ( name , pSvcLocator )
: GaudiAlgorithm ( name , pSvcLocator ), m_means(NULL), m_thresholds(NULL), m_infoKeys(NULL)
{
declareProperty( "InputContainer", m_InputContainerName = LHCb::HltLumiResultLocation::Default );
}
@@ -52,9 +52,9 @@ LumiPutResult::~LumiPutResult() {
// how????
// then release storage
delete[] m_means;
delete[] m_thresholds;
delete[] m_infoKeys;
if ( m_means ) delete[] m_means;
if ( m_thresholds ) delete[] m_thresholds;
if ( m_infoKeys ) delete[] m_infoKeys;
}
//=============================================================================
Loading