[Python-checkins] cpython: ceval: tighten the code of STORE_ANNOTATION
yury.selivanov
python-checkins at python.org
Fri Sep 9 02:38:22 EDT 2016
https://hg.python.org/cpython/rev/28923a58a17e
changeset: 103393:28923a58a17e
user: Yury Selivanov <yury at magic.io>
date: Thu Sep 08 23:38:21 2016 -0700
summary:
ceval: tighten the code of STORE_ANNOTATION
files:
Python/ceval.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- 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();
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list