From: Benjamin Peterson Date: Mon, 2 Jan 2012 16:12:13 +0000 (-0600) Subject: also decref the right thing X-Git-Tag: v3.3.0a1~489 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e458f520ca6ae0f7b73bfc2de310ac0a0139ded;p=thirdparty%2FPython%2Fcpython.git also decref the right thing --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e152e732a48f..9a9703a4458d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -9140,7 +9140,7 @@ PyUnicode_Count(PyObject *str, 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; }