commit | 50c584f50bea9a292337a5e8693428277408060b | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yury@magic.io> | Thu Sep 08 23:38:21 2016 -0700 |
committer | Yury Selivanov <yury@magic.io> | Thu Sep 08 23:38:21 2016 -0700 |
tree | 6a0c88aec50e33a117932461480da2109a32e7a5 | |
parent | eb6364557f9bc4e6be29bb8a8f43308a0e080aba [diff] [blame] |
ceval: tighten the code of STORE_ANNOTATION
diff --git a/Python/ceval.c b/Python/ceval.c index f737a2f..75ec7b2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -1921,11 +1921,10 @@ 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(); }