summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-18 12:14:10 (GMT)
committerGitHub <noreply@github.com>2023-07-18 12:14:10 (GMT)
commita423ddbdeada8a2fd8657453b9e9f58ba0dd921d (patch)
tree92bf9ec6a80c41499f73a2d2e599df685ab8c4de /Include
parentb79f3b36c318be8b27d1737a819e33145193801c (diff)
downloadcpython-a423ddbdeada8a2fd8657453b9e9f58ba0dd921d.zip
cpython-a423ddbdeada8a2fd8657453b9e9f58ba0dd921d.tar.gz
cpython-a423ddbdeada8a2fd8657453b9e9f58ba0dd921d.tar.bz2
[3.12] gh-86493: Fix possible leaks in some modules initialization (GH-106768) (GH-106855)
Fix _ssl, _stat, _testinternalcapi, _threadmodule, cmath, math, posix, time. (cherry picked from commit 3e65baee72131b49f4ce8ca2da568a6f2001ce93)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/modsupport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/modsupport.h b/Include/cpython/modsupport.h
index 88f34fe..2259291 100644
--- a/Include/cpython/modsupport.h
+++ b/Include/cpython/modsupport.h
@@ -106,3 +106,4 @@ PyAPI_FUNC(PyObject * const *) _PyArg_UnpackKeywordsWithVararg(
(minpos), (maxpos), (minkw), (buf)))
PyAPI_FUNC(PyObject *) _PyModule_CreateInitialized(PyModuleDef*, int apiver);
+PyAPI_FUNC(int) _PyModule_Add(PyObject *, const char *, PyObject *);