[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-40737: Fix possible reference leak for sqlite3 initialization by erlend-aasland · Pull Request #20323 · python/cpython

erlend-aasland

According to the docs, PyModule_AddObject() only decrements the
reference count of value _on success_.  Calling code must Py_DECREF()
manually on error.

Erlend Egeberg Aasland and others added 9 commits

May 25, 2020 17:44
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>

erlend-aasland changed the title bpo-40737: Use PyModule_AddObject() correctly in sqlite3 bpo-40737: Use PyModule_AddType() in sqlite3

May 25, 2020

erlend-aasland changed the title bpo-40737: Use PyModule_AddType() in sqlite3 bpo-40737: Fix possible reference leak for sqlite3 initialization

May 25, 2020

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 26, 2020

…thonGH-20323)

(cherry picked from commit 5eb45d7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>

miss-islington added a commit that referenced this pull request

May 26, 2020

…-20323)

(cherry picked from commit 5eb45d7)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>