bpo-40334: Improvements to error-handling code in the PEG parser (GH-20003)
The following improvements are implemented in this commit: - `p->error_indicator` is set, in case malloc or realloc fail. - Avoid memory leaks in the case that realloc fails. - Call `PyErr_NoMemory()` instead of `PyErr_Format()`, because it requires no memory. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
L
Lysandros Nikolaou committed
2c8cd06afe8e0abb52367f85978f19b88e2df53e
Parent: 6341fc7
Committed by GitHub <noreply@github.com>
on 5/17/2020, 3:19:23 AM