SIGN IN SIGN UP

bpo-40412: Nullify inittab_copy during finalization (GH-19746)

Otherwise we leave a dangling pointer to free'd memory. If we
then initialize a new interpreter in the same process and call
PyImport_ExtendInittab, we will (likely) crash when calling
PyMem_RawRealloc(inittab_copy, ...) since the pointer address
is bogus.

Automerge-Triggered-By: @brettcannon
G
Gregory Szorc committed
64224a4727321a8dd33e6f769edda401193ebef0
Parent: 831d58d
Committed by GitHub <noreply@github.com> on 5/1/2020, 6:07:54 PM