Commit 50c584f5 authored by Yury Selivanov's avatar Yury Selivanov

ceval: tighten the code of STORE_ANNOTATION

parent eb636455
...@@ -1921,11 +1921,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag) ...@@ -1921,11 +1921,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
err = PyObject_SetItem(ann_dict, name, ann); err = PyObject_SetItem(ann_dict, name, ann);
} }
Py_DECREF(ann_dict); Py_DECREF(ann_dict);
Py_DECREF(ann);
if (err != 0) { if (err != 0) {
Py_DECREF(ann);
goto error; goto error;
} }
Py_DECREF(ann);
DISPATCH(); DISPATCH();
} }
......
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