◐ Shell
clean mode source ↗

[3.6] bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is allocated. by brianfcoleman · Pull Request #402 · python/cpython

allocated.

On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if
co_extra->ce_extras could not be allocated.
On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in
co_extra->ce_extras to NULL.