Commit 205ad613 authored by Benjamin Peterson's avatar Benjamin Peterson

only finish error if one occurred

parent c0beabc2
......@@ -835,7 +835,8 @@ PyAST_FromNode(const node *n, PyCompilerFlags *flags, const char *filename,
PyTuple_SET_ITEM(c.c_normalize_args, 1, NULL);
Py_DECREF(c.c_normalize_args);
}
ast_error_finish(filename);
if (!res)
ast_error_finish(filename);
return res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment