bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853)

Add _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions.
This commit is contained in:
Kumar Aditya 2022-01-27 18:33:47 +05:30 committed by GitHub
parent ecfacc362d
commit c7f810b34d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 0 deletions

View file

@ -14,6 +14,12 @@
#include "Python/frozen_modules/importlib._bootstrap_external.h"
/* End includes */
/* Empty finalizer for deepfrozen modules*/
void
_Py_Deepfreeze_Fini(void)
{
}
/* Note that a negative size indicates a package. */
static const struct _frozen bootstrap_modules[] = {
@ -103,3 +109,4 @@ error:
}
Py_ExitStatusException(status);
}