memory leak fix in AliFileMerger
authorshahoian <ruben.shahoyan@cern.ch>
Tue, 2 Dec 2014 23:51:27 +0000 (00:51 +0100)
committershahoian <ruben.shahoyan@cern.ch>
Tue, 2 Dec 2014 23:51:27 +0000 (00:51 +0100)
ANALYSIS/AliFileMerger.cxx

index f8d88fb..b44c399 100644 (file)
@@ -591,6 +591,7 @@ int AliFileMerger::MergeRootfile( TDirectory *target, TList *sourcelist, Bool_t
        }
        hstack1->GetHists()->Merge(l);
        l->Delete();
+       delete l;
       } else {
        // object is of no type that we can merge
        cout << "Cannot merge object type, name: "