]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG3/hfe/AliHFEcollection.cxx
Changes for bug #70680: AliROOT Coverity DELETE_ARRAY checker fix
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEcollection.cxx
index e131bfe8c078698423f5cea9f3949fecda2babf1..012cce65df8c53701f941e0f4fe68d7fc0ec5104 100644 (file)
@@ -182,7 +182,7 @@ Bool_t AliHFEcollection::CreateTH1Fvector1(Int_t X, const char* name, const char
     //cout<<" -D: nBin: "<<_nBin<<" ,Min: "<<_nMin<<" , Max: "<<_nMax<<endl;
     CreateTH1F(hname.Data(), title, nBin, nMin, nMax);
     if(!CheckObject(hname.Data())){
-      AliError(Form("Not possible to create object: ", hname.Data()));
+      AliError(Form("Not possible to create object: %s", hname.Data()));
       return kFALSE;
     }    
   }
@@ -469,7 +469,7 @@ Bool_t AliHFEcollection::BinLogAxis(const char* name, Int_t dim){
     newBins[i] = factor * newBins[i-1];
   }
   axis->Set(bins, newBins);
-  delete newBins;
+  delete [] newBins;
 
   return kTRUE;