]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 bf16aac88c612c319b63c473308e94a150953e56..937feba723d33c330a378004aefe2166e5b02b12 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++) {