fixing nnfit leaks
Created by: scarrazza
Fixes leaks from nnfit detected by address sanitizer (debug mode).
Merge request reports
Activity
requested review from @enocera
requested review from @enocera
509 511 510 512 // Performing DGLAP 511 513 cout << Colour::FG_BLUE << "- Solving DGLAP for LHAPDF grid..." << Colour::FG_DEFAULT << endl; 512 real *pdf = new real[14]; 514 array<real, 14> pdf; 513 515 const int nx = xgrid.size(); 514 vector<vector<real*> > res(q2grid.size()); 516 vector<vector<array<real, 14> > > res(q2grid.size()); Created by: nhartland
I was thinking you could use your matrix class to neaten this up a bit, but presumably given #173 (closed) this isn't going to last anyway
115 115 vector<Experiment*> training; 116 116 vector<Experiment*> validation; 117 117 118 PDFSet* T0Set = new LHAPDFSet(settings.Get("datacuts","t0pdfset").as<string>(), PDFSet::erType::ER_MCT0); 118 auto T0Set = std::make_unique<LHAPDFSet>(settings.Get("datacuts","t0pdfset").as<string>(), PDFSet::erType::ER_MCT0);
Please register or sign in to reply