diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-08 23:38:21 -0700 |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-08 23:38:21 -0700 |
commit | 50c584f50bea9a292337a5e8693428277408060b (patch) | |
tree | 6a0c88aec50e33a117932461480da2109a32e7a5 /Python/ceval.c | |
parent | eb6364557f9bc4e6be29bb8a8f43308a0e080aba (diff) | |
download | cpython-git-50c584f50bea9a292337a5e8693428277408060b.tar.gz |
ceval: tighten the code of STORE_ANNOTATION
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index f737a2f3a0..75ec7b2abe 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(); } |