-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-30769: Fix reference leak introduced in 77703942c59 #2416
Conversation
Thanks @ericvw for the PR on this issue. @emilyemorehouse, if you have time to review this PR, that would be great since you identified the added test that surfaced the leak (no worries if you don't have time). |
@willingc got it! I'm happy to update the stage in the bug tracker as PRs progress as well, let me know if that would be helpful. (I also was not sure the exact difference between patch review and commit review). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving changes based on review by @emilyemorehouse.
Thanks @emilyemorehouse! I've approved this PR based on your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, I fail to find your name (Eric N. Vander Weele) in Misc/ACKS.
Can you please add yourself to Misc/ACKS?
By the way, @berkerpeksag forgot to add you when he pushed the commit ef6bf4c ;-)
"@emilyemorehouse: LGTM" Don't hesitate to approve the change ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to complete Misc/ACKS.
@Haypo I'll be more explicit in the future. (: I'll also keep an eye on this to ensure backporting is completed. |
FTR, I didn't because it was a trivial patch. There is a note in devguide that says we should update |
@berkerpeksag: "FTR, I didn't because it was a trivial patch. There is a note in devguide that says we should update Misc/ACKS only for nontrivial changes." Ok, it makes sense! |
New error condition paths were introduced, which did not decrement `key2` and `val2` objects. Therefore, decrement references before jumping to the error label. Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
@Haypo, updated |
Thanks @ericvw, I merged your fix! Anyone wants to backport the fix to 3.6 and 3.5? |
@Haypo I'm on it. |
) New error condition paths were introduced, which did not decrement `key2` and `val2` objects. Therefore, decrement references before jumping to the error label. Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com> (cherry picked from commit a7874c7)
GH-2425 is a backport of this pull request to the 3.6 branch. |
3.5 has a merge conflict, looking into it. 😬 |
Actually, the identical |
@emilyemorehouse: "3.5 has a merge conflict, looking into it. 😬" Do you need help to handle the conflict? You might rewrite the fix instead of trying a simple cherry-pick, it may be simpler. |
Rewriting the fix was indeed the path I was going to take. I'm stuck on not having a test case to illustrate the issue for 3.5 as the original test that I was using actually passes on 3.5 as is, though Serhiy pointed out that the bug does indeed exist for 3.5 |
I just checked the 3.5 branch (at commit de1850b) on Linux, and I'm still able to reproduce the bug:
|
GH-2447 is a backport of this pull request to the 3.5 branch. |
New error condition paths were introduced, which did not decrement
key2
andval2
objects. Therefore, decrement references beforejumping to the error label.
Signed-off-by: Eric N. Vander Weele ericvw@gmail.com