]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141690)
authorPrithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
Thu, 20 Nov 2025 14:35:22 +0000 (09:35 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Nov 2025 14:35:22 +0000 (15:35 +0100)
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 5464fd1227ad208da36e714649ca23c62346998c..831dd9219f77aba8224de728d9f9400d18713014 100644 (file)
@@ -774,7 +774,6 @@ module_exec(PyObject *module)
     return 0;
 
 error:
-    sqlite3_shutdown();
     return -1;
 }