Skip to content
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

Merged
merged 3 commits into from
Mar 9, 2015

Conversation

mark-grimes
Copy link

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 an edm::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.)

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2015

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.
@Martin-Grunewald this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@fratnikov, @mark-grimes you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@mark-grimes
Copy link
Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2015

@mulhearn
Copy link
Contributor

mulhearn commented Mar 4, 2015

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 4, 2015

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

@mark-grimes
Copy link
Author

merge

@sviret, I assume no complaint means my change is okay.

cmsbuild added a commit that referenced this pull request Mar 9, 2015
Small fix to PR #7823 (Adding the retina fitter)
@cmsbuild cmsbuild merged commit 5cdcb30 into cms-sw:CMSSW_6_2_X_SLHC Mar 9, 2015
@mark-grimes mark-grimes deleted the fix7823Memory branch March 10, 2015 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants