mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
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:
parent
ecfacc362d
commit
c7f810b34d
8 changed files with 39 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue