bpo-35766 follow-up: Add an error check to new_type_comment() (#11766)
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash. Found by @msullivan for https://github.com/python/typed_ast/pull/93.
G
Guido van Rossum committed
4b250fc1da9c893803cf724a4974450b5e10bd8a
Parent: 537b6ca
Committed by GitHub <noreply@github.com>
on 2/11/2019, 4:10:42 PM