Creating big array in the heap
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2004 13:33:16 +0000 (13:33 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2004 13:33:16 +0000 (13:33 +0000)
ITS/AliITStrackerMI.cxx

index e7f69d5b0b1d01cc2dcd2045ebb1d88d52fc2898..5c586105e1767d5c6648c0f057932d587daa3600 100644 (file)
@@ -3026,7 +3026,7 @@ void  AliITStrackerMI::FindV0(AliESD *event)
   // fast V0 finder
   //
   //fV0Array->Clean();
-  AliHelix helixes[30000];
+  AliHelix * helixes = new AliHelix[30000];
   TObjArray trackarray(30000);
   Float_t dist[30000];
   Float_t mindist[30000];
@@ -3202,6 +3202,7 @@ void  AliITStrackerMI::FindV0(AliESD *event)
       }
     }
   }
+  delete[] helixes;
   delete[] vertexarray;
   delete[] oldvertexarray;
 }