mirror of
https://github.com/python/cpython
synced 2024-09-16 00:37:36 +00:00
bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455)
Free also co_extra->ce_extras, not only co_extra.
This commit is contained in:
parent
36fc896740
commit
23e7944eba
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue