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
1 changed files with 1 additions and 2 deletions

View File

@ -1921,11 +1921,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
err = PyObject_SetItem(ann_dict, name, ann);
}
Py_DECREF(ann_dict);
Py_DECREF(ann);
if (err != 0) {
Py_DECREF(ann);
goto error;
}
Py_DECREF(ann);
DISPATCH();
}