[Python-checkins] cpython: also decref the right thing

benjamin.peterson python-checkins at python.org
Mon Jan 2 17:12:26 CET 2012


http://hg.python.org/cpython/rev/c0f64baad88d
changeset: 74239:c0f64baad88d
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jan 02 10:12:13 2012 -0600
summary:
 also decref the right thing
files:
 Objects/unicodeobject.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9140,7 +9140,7 @@
 return -1;
 }
 if (PyUnicode_READY(sub_obj) == -1 || PyUnicode_READY(str_obj) == -1) {
- Py_DECREF(substr);
+ Py_DECREF(sub_obj);
 Py_DECREF(str_obj);
 return -1;
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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