diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-02-24 16:54:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 16:54:06 (GMT) |
commit | 4dc746310bd37ad6b381f9176acd167d445f4385 (patch) | |
tree | 414abfb60866c640ea403888d9c7356e2e120f4b /Programs | |
parent | 042f31da552c19054acd3ef7bb6cfd857bce172b (diff) | |
download | cpython-4dc746310bd37ad6b381f9176acd167d445f4385.zip cpython-4dc746310bd37ad6b381f9176acd167d445f4385.tar.gz cpython-4dc746310bd37ad6b381f9176acd167d445f4385.tar.bz2 |
bpo-46430: Fix memory leak in interned strings of deep-frozen modules (GH-31549)
Diffstat (limited to 'Programs')
-rw-r--r-- | Programs/_bootstrap_python.c | 8 | ||||
-rw-r--r-- | Programs/_freeze_module.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Programs/_bootstrap_python.c b/Programs/_bootstrap_python.c index f4d0167..75d455c 100644 --- a/Programs/_bootstrap_python.c +++ b/Programs/_bootstrap_python.c @@ -14,9 +14,13 @@ #include "Python/frozen_modules/importlib._bootstrap_external.h" /* End includes */ -/* Empty finalizer for deepfrozen modules*/ +/* Empty initializer for deepfrozen modules */ +void _Py_Deepfreeze_Init(void) +{ +} +/* Empty finalizer for deepfrozen modules */ void -_Py_Deepfreeze_Fini(void) +_Py_Deepfreeze_Fini(void) { } diff --git a/Programs/_freeze_module.c b/Programs/_freeze_module.c index 99a1d4d..d5a236a 100644 --- a/Programs/_freeze_module.c +++ b/Programs/_freeze_module.c @@ -22,6 +22,10 @@ #include <unistd.h> #endif +/* Empty initializer for deepfrozen modules */ +void _Py_Deepfreeze_Init(void) +{ +} /* Empty finalizer for deepfrozen modules */ void _Py_Deepfreeze_Fini(void) |