bpo-40020: Fix realloc leak on failure in growable_comment_array_add (GH-19083)
Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath. Realloc returns a null pointer on failure, and then growable_comment_array_deallocate crashes later when it dereferences it.
A
Alexander Riccio committed
51e3e450fbed46198d9be92add1a5dee6a1f7f41
Parent: fc2d8d6
Committed by GitHub <noreply@github.com>
on 3/30/2020, 9:15:59 PM