We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3473817 commit 8f728e5Copy full SHA for 8f728e5
Objects/codeobject.c
@@ -2092,6 +2092,7 @@ _PyStaticCode_Dealloc(PyCodeObject *co)
2092
deopt_code(_PyCode_CODE(co), Py_SIZE(co));
2093
co->co_warmup = QUICKENING_INITIAL_WARMUP_VALUE;
2094
PyMem_Free(co->co_extra);
2095
+ Py_CLEAR(co->_co_code);
2096
co->co_extra = NULL;
2097
if (co->co_weakreflist != NULL) {
2098
PyObject_ClearWeakRefs((PyObject *)co);
0 commit comments