From 5e458f520ca6ae0f7b73bfc2de310ac0a0139ded Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 2 Jan 2012 10:12:13 -0600 Subject: also decref the right thing --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e152e73..9a9703a 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; } -- cgit v0.12