diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-05 02:11:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-05 02:11:45 (GMT) |
commit | 6f889ad32f5297f9e0775df3477788a7e19bcac3 (patch) | |
tree | ca75c8078150d99048e072168f45d91c3a8cee12 /Objects | |
parent | c03d7571c482668fc574be52a3edef7b0852738b (diff) | |
download | cpython-6f889ad32f5297f9e0775df3477788a7e19bcac3.zip cpython-6f889ad32f5297f9e0775df3477788a7e19bcac3.tar.gz cpython-6f889ad32f5297f9e0775df3477788a7e19bcac3.tar.bz2 |
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')
-rw-r--r-- | Objects/abstract.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 1b6c2b4..9fb56b6 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, |