If the number of events is changed from 3 to a relatively large number, i.e. change the Line 87 of the errprop.cc to "size_t nEvent = 1000000", one can see the memory consumption continue to grow rapidly till the system kills the process. On the other hand, if one creates his own physics list and don't add the G4ErrorStepLengthLimitProcess, without any other modification the memory leakage disappears. Please help me solve this problem and thank you very much for looking into this.
I saw the same problem with 9.5 and posted a patch in the user forum. I'll reattach it here. Best, Jan
Created attachment 154 [details] Should fix memory leaks in ErrorProp
Thanks to Jan for the code. I changed the repository. Pedor