Add a missed PyErr_NoMemory() in symtable_new(). (GH-10576)
This missed PyErr_NoMemory() could cause a SystemError when calling
_symtable.symtable().
diff --git a/Python/symtable.c b/Python/symtable.c
index c095c82..96f7bcd 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -210,8 +210,10 @@
struct symtable *st;
st = (struct symtable *)PyMem_Malloc(sizeof(struct symtable));
- if (st == NULL)
+ if (st == NULL) {
+ PyErr_NoMemory();
return NULL;
+ }
st->st_filename = NULL;
st->st_blocks = NULL;