]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690) (#141793)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 30 Nov 2025 12:32:11 +0000 (13:32 +0100)
committerGitHub <noreply@github.com>
Sun, 30 Nov 2025 12:32:11 +0000 (14:32 +0200)
Co-authored-by: Prithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
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 27e8dab92e0e67879a0339919cf4328d91960a49..fcc1d69c707ebe63da54cea8c20837637072ed96 100644 (file)
@@ -745,7 +745,6 @@ module_exec(PyObject *module)
     return 0;
 
 error:
-    sqlite3_shutdown();
     return -1;
 }