-
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
Small fix to PR #7823 (Adding the retina fitter) #8046
Conversation
A new Pull Request was created by @mark-grimes (Mark Grimes) for CMSSW_6_2_X_SLHC. Small fix to PR #7823 (Adding the retina fitter) It involves the following packages: L1Trigger/TrackFindingAM @cmsbuild, @nclopezo, @mulhearn can you please review it and eventually sign? Thanks. |
please test |
The tests are being triggered in jenkins. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_6_2_X_SLHC IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @ktf, @fratnikov, @mark-grimes, @smuzaffar |
merge @sviret, I assume no complaint means my change is okay. |
Small fix to PR #7823 (Adding the retina fitter)
This fixes a potential memory leak in #7823 if the
RetinaTrackFitter::fit
function returns early. There's a comment on #7823 explaining where this can happen. I have no idea how likely the condition is to be met, but safer not to introduce any potential for a memory leak.Changing the
hits
vector to anedm::OwnVector
would have been a more "CMSSW friendly" solution, but that would have required changing the class interface since the vector is passed around.@sviret, let me know if you're happy with this solution. You should be able to see just my changes at 7463d30.
(EDIT - that link for the commit with my changes isn't working for some reason. No idea why.)