From 6f889ad32f5297f9e0775df3477788a7e19bcac3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 5 Jun 2010 02:11:45 +0000 Subject: [PATCH] Merged revisions 81712 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81712 | benjamin.peterson | 2010-06-04 21:07:01 -0500 (Fri, 04 Jun 2010) | 1 line _PyObject_LookupSpecial returns a new reference ........ --- Objects/abstract.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/abstract.c b/Objects/abstract.c index 1b6c2b42796..9fb56b6b179 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -716,6 +716,7 @@ PyObject_Format(PyObject *obj, PyObject *format_spec) /* And call it. */ result = PyObject_CallFunctionObjArgs(meth, format_spec, NULL); + Py_DECREF(meth); if (result && !PyUnicode_Check(result)) { PyErr_SetString(PyExc_TypeError,