[Python-checkins] [python/cpython] a6e849: bpo-29683 - Fixes to _PyCode_SetExtra when co_extr...

GitHub noreply at github.com
Thu Mar 2 17:21:55 EST 2017

  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: a6e84933d204f807e0e81b6a2237193b2e8ab89a
  Author: Brian Coleman <brianfcoleman at gmail.com>
  Date:   2017-03-03 (Fri, 03 Mar 2017)

  Changed paths:
    M Misc/NEWS
    M Objects/codeobject.c

  Log Message:
  bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is (#402)


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.

More information about the Python-checkins mailing list