diff --git a/src/utils.cc b/src/utils.cc index b716edda8c6..be69af6e759 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -610,7 +610,6 @@ utils::makePlots(const RooAbsPdf &pdf, const RooAbsData &data, const char *signa if (rebinFactor>1) ds->plotOn(ret.back(), RooFit::DataError(RooAbsData::Poisson)); else ds->plotOn(ret.back(), RooFit::DataError(RooAbsData::Poisson),RooFit::Binning("")); } - delete ds; } delete datasets; } else if (pdf.canBeExtended()) {