Fixes for some mem-leaks: most changes where pretty basic (i.e. adding deletes).
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDCluster.cxx
index 7ce3a5d68adb896d174b976612b3aa12bf077b2d..28db82b7ebb8eff0e90123690cc41546da43366f 100644 (file)
@@ -144,7 +144,7 @@ void AliHMPIDCluster::FitFunc(Int_t &iNpars, Double_t* deriv, Double_t &chi2, Do
     }
   }
   //delete array...
-  for(Int_t i=0;i<iNpars;i++) delete derivPart[i]; delete derivPart;
+  for(Int_t i=0;i<iNpars;i++) delete [] derivPart[i]; delete [] derivPart;
   
 }//FitFunction()
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++