bpo-40737: Fix possible reference leak for sqlite3 initialization#20323
Conversation
According to the docs, PyModule_AddObject() only decrements the reference count of value _on success_. Calling code must Py_DECREF() manually on error.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
|
Should probably be backported to 3.9, @corona10. |
|
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
corona10
left a comment
There was a problem hiding this comment.
lgtm! Thanks for the contribution!
|
Thanks @erlend-aasland for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
…thonGH-20323) (cherry picked from commit 5eb45d7) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
|
GH-20425 is a backport of this pull request to the 3.9 branch. |
|
Thanks for you patience and helpful comments, @corona10! |
According to the docs,
PyModule_AddObject()only decrements thereference count of value on success. Calling code must
Py_DECREF()manually on error.
https://bugs.python.org/issue40737