Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix leak from HepPDT::HeavyIonUnknownID
HepPDT::HeavyIonUnknownID creates a new particle in the case the HepPDT does not know of that particle by default. However, nothing deletes that particle. This code wraps HeavyIonUnknownID and does a thread safe cache of the particle in order to delete it later.
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<use name="FWCore/ParameterSet"/> | ||
<use name="SimGeneral/HepPDTRecord"/> | ||
<use name="tbb"/> | ||
<flags EDM_PLUGIN="1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters