commit | a6e84933d204f807e0e81b6a2237193b2e8ab89a | [log] [tgz] |
---|---|---|
author | Brian Coleman <brianfcoleman@gmail.com> | Thu Mar 02 22:21:53 2017 +0000 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Fri Mar 03 00:21:53 2017 +0200 |
tree | c8675269eb9fca2e35fbd4864db1e1afbed0da71 | |
parent | 65bd0bdf3d285e3917d66c600c95cb0842e3b3be [diff] |
bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#402) 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.