]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141793) (#141812)
authorPrithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
Sun, 30 Nov 2025 12:33:05 +0000 (07:33 -0500)
committerGitHub <noreply@github.com>
Sun, 30 Nov 2025 12:33:05 +0000 (14:33 +0200)
Misc/NEWS.d/next/C API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst [new file with mode: 0644]
Modules/_sqlite/module.c

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 (file)
index 0000000..608e806
--- /dev/null
@@ -0,0 +1 @@
+Removed the sqlite3_shutdown call that could cause closing connections for sqlite when used with multiple sub interpreters.
index 2c25ee32e58189c73d276aa82e2b24b88628042b..3d828abdd80edb2106a2a6a26dd3477e8f30dcd8 100644 (file)
@@ -751,7 +751,6 @@ module_exec(PyObject *module)
     return 0;
 
 error:
-    sqlite3_shutdown();
     return -1;
 }