Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 15:25:42 +0000 (15:25 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 15:25:42 +0000 (15:25 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoModelWeightGeneratorLednicky.cxx

index cb96386..83504db 100644 (file)
@@ -239,10 +239,12 @@ AliFemtoModelWeightGeneratorLednicky& AliFemtoModelWeightGeneratorLednicky::oper
   fLL = aWeight.fLL;
   fNuclChargeSign = aWeight.fNuclChargeSign;
   fSwap = aWeight.fSwap;
-  fLLName = aWeight.fLLName; 
+  //  fLLName = aWeight.fLLName; 
   fNumProcessPair = aWeight.fNumProcessPair;
   fNumbNonId = aWeight.fNumbNonId;
+  if (fLLName) free(fLLName);
   fLLName=new char*[fLLMax+1];
+  if (fNumProcessPair) free(fNumProcessPair);
   fNumProcessPair=new int[fLLMax+1];
   int i;
   for (i=1;i<=fLLMax;i++) {fLLName[i]=new char[40];fNumProcessPair[i]=0;}