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