[Python-checkins] cpython: Issue #29049: Remove unnecessary Py_DECREF

inada.naoki python-checkins at python.org
Mon Dec 26 04:54:48 EST 2016


https://hg.python.org/cpython/rev/5f3ac68f34f2
changeset: 105825:5f3ac68f34f2
user: INADA Naoki <songofacandy at gmail.com>
date: Mon Dec 26 18:52:46 2016 +0900
summary:
 Issue #29049: Remove unnecessary Py_DECREF
files:
 Python/ceval.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4153,9 +4153,9 @@
 gen = PyGen_NewWithQualName(f, name, qualname);
 }
 if (gen == NULL) {
- Py_DECREF(f);
 return NULL;
 }
+
 _PyObject_GC_TRACK(f);
 
 if (is_coro && coro_wrapper != NULL) {
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /