Commit 23e7944e authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-30704, bpo-30604: Fix memleak in code_dealloc() (#2455)

Free also co_extra->ce_extras, not only co_extra.
parent 36fc8967
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment