Commits

Benjamin Peterson  committed 8241fc8

only finish error if one occurred

  • Participants
  • Parent commits 169fbba

Comments (0)

Files changed (1)

File Python/ast.c

         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;
 }