Kaydet (Commit) d1e5493a authored tarafından Benjamin Peterson's avatar Benjamin Peterson

rewrite error handling to make sense

üst 22081a13
...@@ -824,14 +824,18 @@ analyze_child_block(PySTEntryObject *entry, PyObject *bound, PyObject *free, ...@@ -824,14 +824,18 @@ analyze_child_block(PySTEntryObject *entry, PyObject *bound, PyObject *free,
if (!analyze_block(entry, temp_bound, temp_free, temp_global)) if (!analyze_block(entry, temp_bound, temp_free, temp_global))
goto error; goto error;
success = PyNumber_InPlaceOr(child_free, temp_free) >= 0; if (PyNumber_InPlaceOr(child_free, temp_free) < 0)
goto error;
Py_DECREF(child_free); Py_DECREF(child_free);
success = 1; Py_DECREF(temp_bound);
Py_DECREF(temp_free);
Py_DECREF(temp_global);
return 1;
error: error:
Py_XDECREF(temp_bound); Py_XDECREF(temp_bound);
Py_XDECREF(temp_free); Py_XDECREF(temp_free);
Py_XDECREF(temp_global); Py_XDECREF(temp_global);
return success; return 0;
} }
static int static int
......
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