summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pylifecycle.h
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-01-27 13:03:47 (GMT)
committerGitHub <noreply@github.com>2022-01-27 13:03:47 (GMT)
commitc7f810b34d91a5c2fbe0a8385562015d2dd961f2 (patch)
tree0fcbd6901e212f47e1054a862af4d8ec571ee7c2 /Include/internal/pycore_pylifecycle.h
parentecfacc362dd7fef7715dcd94f2e2ca6c622ef115 (diff)
downloadcpython-c7f810b34d91a5c2fbe0a8385562015d2dd961f2.zip
cpython-c7f810b34d91a5c2fbe0a8385562015d2dd961f2.tar.gz
cpython-c7f810b34d91a5c2fbe0a8385562015d2dd961f2.tar.bz2
bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853)
Add _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions.
Diffstat (limited to 'Include/internal/pycore_pylifecycle.h')
-rw-r--r--Include/internal/pycore_pylifecycle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index 35e560b..439bc5b 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -83,6 +83,7 @@ extern void _PyWarnings_Fini(PyInterpreterState *interp);
extern void _PyAST_Fini(PyInterpreterState *interp);
extern void _PyAtExit_Fini(PyInterpreterState *interp);
extern void _PyThread_FiniType(PyInterpreterState *interp);
+extern void _Py_Deepfreeze_Fini(void);
extern PyStatus _PyGILState_Init(_PyRuntimeState *runtime);
extern PyStatus _PyGILState_SetTstate(PyThreadState *tstate);