]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89289: Harden sqlite3.Connection init (#92214)
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>
Tue, 3 May 2022 18:18:11 +0000 (12:18 -0600)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 18:18:11 +0000 (12:18 -0600)
commitc278474df97de310535425c207136bf26c663e0b
treef86f382dac8be2ff7b96ecf232a9cdb51d613c46
parent2eca5dad0a783153318e91e3e25f16a38a632bfd
gh-89289: Harden sqlite3.Connection init (#92214)

- Make sure SQLite resources are freed if database open fails
- Remove unneeded branches if init is aborted
Modules/_sqlite/connection.c