From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 30 Nov 2025 12:32:11 +0000 (+0100) Subject: [3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793) X-Git-Tag: v3.14.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=212b096b2ae0625346bfca3eaf03dce80788ef57;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793) Co-authored-by: Prithviraj Chaudhuri --- diff --git a/Misc/NEWS.d/next/C_API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst b/Misc/NEWS.d/next/C_API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst new file mode 100644 index 000000000000..608e806b4313 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst @@ -0,0 +1 @@ +Removed the sqlite3_shutdown call that could cause closing connections for sqlite when used with multiple sub interpreters. diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index 27e8dab92e0e..fcc1d69c707e 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -745,7 +745,6 @@ module_exec(PyObject *module) return 0; error: - sqlite3_shutdown(); return -1; }