diff --git a/CondFormats/JetMETObjects/src/JetResolutionObject.cc b/CondFormats/JetMETObjects/src/JetResolutionObject.cc index 785ce8f440df5..11d422df4f0b2 100644 --- a/CondFormats/JetMETObjects/src/JetResolutionObject.cc +++ b/CondFormats/JetMETObjects/src/JetResolutionObject.cc @@ -420,10 +420,7 @@ namespace JME { return 1; #ifndef STANDALONE - reco::FormulaEvaluator* Formula = new reco::FormulaEvaluator(m_definition.getFormulaString()); - if (!Formula) - return 1; - auto formula = *Formula; + reco::FormulaEvaluator formula = reco::FormulaEvaluator(m_definition.getFormulaString()); #else // Set parameters auto const* pFormula = m_definition.getFormula();