summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index f2cd59e..c8a5669 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4043,9 +4043,12 @@ PyNode_CompileSymtable(node *n, char *filename)
ff = PyNode_Future(n, filename);
if (ff == NULL)
return NULL;
+
st = symtable_init();
- if (st == NULL)
+ if (st == NULL) {
+ PyMem_Free((void *)ff);
return NULL;
+ }
st->st_future = ff;
symtable_enter_scope(st, TOP, TYPE(n), n->n_lineno);
if (st->st_errors > 0)