From: Yury Selivanov Date: Fri, 9 Sep 2016 06:38:21 +0000 (-0700) Subject: ceval: tighten the code of STORE_ANNOTATION X-Git-Tag: v3.6.0b1~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50c584f50bea9a292337a5e8693428277408060b;p=thirdparty%2FPython%2Fcpython.git ceval: tighten the code of STORE_ANNOTATION --- diff --git a/Python/ceval.c b/Python/ceval.c index f737a2f3a036..75ec7b2abed5 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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(); }