ceval: tighten the code of STORE_ANNOTATION

This commit is contained in:
Yury Selivanov 2016-09-08 23:38:21 -07:00
parent eb6364557f
commit 50c584f50b

View file

@ -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();
} }