Problem 568 - memory leaks in Penelope physics
Summary: memory leaks in Penelope physics
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic/lowenergy (show other problems)
Version: other
Hardware: All All
: P2 normal
Assignee: Maria.Grazia.Pia
URL: http://arago.fel.vanderbilt.edu/~marc...
Depends on:
Blocks:
 
Reported: 2004-01-19 12:08 CET by marcus.h.mendenhall
Modified: 2004-02-05 10:01 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description marcus.h.mendenhall 2004-01-19 12:08:24 CET
The G4Penelope... modules contain two memory leaks, due to failure to clean up some
pointers allocated by foo *xxx=new xxx().  In the cases I corrected, it may be
cleaner programming ultimately to replace this construct with an automatic variable
so the automatic destructors handle the situation correctly.  However, for the moment
I have provided versions which use the current construct, and just make sure
the pointers are always explicitly freed.

The classes affected are G4PenelopeInterpolator and G4PenelopeIonisation.

corrected versions of these files can be found at:
http://arago.fel.vanderbilt.edu/~marcus/G4Penelope*.*

Please look at these and merge them back into the main tree as you see fit.
Comment 1 pia 2004-01-19 12:13:59 CET
The memory leaks have already been identified and corrected by the code
developer. A corrected version of the code will be available in next Geant4 beta
release, and, of course, in next public release.

Best wishes,
Maria Grazia Pia