Fix memory leak
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 12:00:04 +0000 (12:00 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 12:00:04 +0000 (12:00 +0000)
TRD/AliTRDtrackV1.cxx

index 8f488d8..b30dec2 100644 (file)
@@ -361,6 +361,7 @@ void AliTRDtrackV1::MakeBackupTrack()
   if(fBackupTrack) {
     fBackupTrack->~AliTRDtrackV1();
     new(fBackupTrack) AliTRDtrackV1((AliTRDtrackV1&)(*this));
+    return;
   }
   fBackupTrack = new AliTRDtrackV1((AliTRDtrackV1&)(*this));
 }