Message: Memory leaks in G4BinaryCascade Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Memory leaks in G4BinaryCascade 

Forum: Physics List
Date: 11 Jul, 2017
From: Allen Barnett <Allen Barnett>

Hi: I think I've found a couple of memory leaks in G4BinaryCascade in Geant4.10.03.p01.

1. The destructor should ClearAndDestroy theFinalState.

2. Around line 350 of, a G4DynamicParticle is created on the heap for each product of the reaction. These are never freed.

Thanks, Allen

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 News: Re: Memory leaks in G4BinaryCascade   (Michael H. Kelsey - 12 Jul, 2017)
(_ None: Re: Memory leaks in G4BinaryCascade   (Allen Barnett - 13 Jul, 2017)
 Add Message Add Message
to: "Memory leaks in G4BinaryCascade"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]