Skip to content

Commit

Permalink
Fix memory leak in AliAODv0 constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fprino authored and chiarazampolli committed Mar 10, 2022
1 parent 79c350d commit db0939b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions STEER/AOD/AliAODv0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ AliAODv0::AliAODv0(AliAODVertex* rAODVertex, Double_t rDcaV0Daughters, Double_t
fDCA[0] = rDcaV0Daughters;
fDcaV0ToPrimVertex = rDcaV0ToPrimVertex;

fPx = new Double_t[GetNProngs()];
fPy = new Double_t[GetNProngs()];
fPz = new Double_t[GetNProngs()];

fPx[0] = rMomPos[0] ;
fPy[0] = rMomPos[1];
fPz[0] = rMomPos[2];
Expand Down

0 comments on commit db0939b

Please sign in to comment.