-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential memory leak in FastSim TrackerSimHitProducer #23795
Comments
assign fastsim |
New categories assigned: fastsim @mdhildreth,@ssekmen,@lveldere,@civanch you have been requested to review this Pull request/Issue and eventually sign? Thanks |
A new Issue was created by @kpedro88 Kevin Pedro. @davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
addressed by #24210 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by valgrind:
cmssw/FastSimulation/SimplifiedGeometryPropagator/plugins/TrackerSimHitProducer.cc
Line 311 in f347d6f
The
PSimHit
returned byfastsim::TrackerSimHitProducer::createHitOnDetector()
is allocated withnew
. It gets stored in a map here:cmssw/FastSimulation/SimplifiedGeometryPropagator/plugins/TrackerSimHitProducer.cc
Line 220 in f347d6f
And then copied by value into the container:
cmssw/FastSimulation/SimplifiedGeometryPropagator/plugins/TrackerSimHitProducer.cc
Line 240 in f347d6f
This implies the original new'd object is never deleted. It would be better to move around the
PSimHit
using smart pointers.The text was updated successfully, but these errors were encountered: