summaryrefslogtreecommitdiff
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-05 02:11:45 +0000
committerBenjamin Peterson <benjamin@python.org>2010-06-05 02:11:45 +0000
commitd3491f09249085d1f7238f4072b7c1ec3d4d46f6 (patch)
tree1becc152b3b7a8697f4f787ad84665f807f12c09 /Objects/abstract.c
parent878d67bf1e098adb71a19749417b566a6a56207b (diff)
downloadcpython-d3491f09249085d1f7238f4072b7c1ec3d4d46f6.tar.gz
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 ........
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 1b6c2b4279..9fb56b6b17 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,