Skip to content

[3.6] bpo-30769: Fix reference leak introduced in 77703942c59 (GH-2416)#2425

Merged
serhiy-storchaka merged 1 commit intopython:3.6from
emilyemorehouse:backport-a7874c7-3.6
Jun 27, 2017
Merged

[3.6] bpo-30769: Fix reference leak introduced in 77703942c59 (GH-2416)#2425
serhiy-storchaka merged 1 commit intopython:3.6from
emilyemorehouse:backport-a7874c7-3.6

Conversation

@emilyemorehouse
Copy link
Copy Markdown
Member

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)

)

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)
@vstinner
Copy link
Copy Markdown
Member

@emilyemorehouse: Since there is no pre-commit CI for reference leaks, can you please confirm that the test leaks without the fix, and then pass with the fix?

@emilyemorehouse
Copy link
Copy Markdown
Member Author

@Haypo tests fail with identical leaks pre-patch and indeed pass with this fix.

@serhiy-storchaka serhiy-storchaka merged commit 2d348f7 into python:3.6 Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants