Fix for Coverity defect 14011: RESOURCE_LEAK
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 12:34:57 +0000 (12:34 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 12:34:57 +0000 (12:34 +0000)
TUHKMgen/AliGenUHKM.cxx

index bf16aac..937feba 100755 (executable)
@@ -346,8 +346,6 @@ void AliGenUHKM::Generate()
   }
 
   Int_t* idsOnStack = new Int_t[np];
-  Int_t* newPos     = new Int_t[np];
-  for(Int_t i=0; i<np; i++) newPos[i] = i;
   
   //_________ Loop for particle selection
   for(Int_t i=0; i<np; i++) {