diff --git a/Objects/codeobject.c b/Objects/codeobject.c index eb860c814b8..19796069106 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -427,7 +427,8 @@ code_dealloc(PyCodeObject *co) } } - PyMem_FREE(co->co_extra); + PyMem_Free(co_extra->ce_extras); + PyMem_Free(co_extra); } Py_XDECREF(co->co_code);