| Summary: | Memory leak in RadioactiveDecay | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | jared.strydhorst |
| Component: | processes/hadronic | Assignee: | dennis.herbert.wright |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | P5 | ||
| Version: | other | ||
| Hardware: | All | ||
| OS: | Linux | ||
|
Description
jared.strydhorst
2015-09-29 14:34:09 CEST
Thanks for reporting this.
The leaks were in G4ITDecay.cc and have been fixed. The fix will appear in the 10.2 release of Geant4.
If you want to fix it in your copy, you can edit the code
geant4/source/processes/hadronic/models/radioactive_decay/src/G4ITDecay.cc
by inserting the line
delete nucleus;
after lines 100 and 101,
G4DynamicParticle* dynDaughter = new G4DynamicParticle(daughterIon,
daughterMomentum);
and inserting the line
delete eOrGamma;
after line 109 (new line number)
products->PushProducts(eOrGammaDyn);
|