From: Benjamin Peterson Date: Sat, 5 Jun 2010 02:07:01 +0000 (+0000) Subject: _PyObject_LookupSpecial returns a new reference X-Git-Tag: v2.7rc1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5adb5d73d3daac54f600f9affa59ce325708ca9;p=python _PyObject_LookupSpecial returns a new reference --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 20d241ddc6..98d2dd0078 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -836,6 +836,7 @@ done1: } /* And call it. */ result = PyObject_CallFunctionObjArgs(method, format_spec, NULL); + Py_DECREF(method); } if (result == NULL)