bug fix: access to deleted pointer
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 Nov 2009 12:45:38 +0000 (12:45 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 7 Nov 2009 12:45:38 +0000 (12:45 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerComponent.cxx

index 92766c6..a3b9bb0 100644 (file)
@@ -867,11 +867,7 @@ int AliHLTTPCCATrackerComponent::DoEvent
 
   //No longer needed
 
-  delete[] slicerow;
-  delete[] sliceminPatch;
-  delete[] slicemaxPatch;
   delete[] clusterData;
-  //These are only temporary pointers to the output and no longer needed
   delete[] sliceOutput;
 
   timer.Stop();
@@ -887,6 +883,12 @@ int AliHLTTPCCATrackerComponent::DoEvent
   HLTInfo( "CATracker slices %d-%d: output %d tracks;  input %d clusters, patches %d..%d, rows %d..%d; time: full %d / reco %d Hz",
            minslice, maxslice, ntracks, nClustersTotalSum, sliceminPatch[0], slicemaxPatch[0], slicerow[0], slicerow[1], hz, hz1 );
 
+  //No longer needed
+
+  delete[] slicerow;
+  delete[] sliceminPatch;
+  delete[] slicemaxPatch;
+
   return ret;
 }