From: Benjamin Peterson Date: Sat, 5 Jun 2010 01:00:10 +0000 (+0000) Subject: fix ref counting X-Git-Tag: v2.7rc1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67783b1f71aca25573b736121ff32098c7cbf4f8;p=thirdparty%2FPython%2Fcpython.git fix ref counting --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b9498e5fa2eb..605d8a010790 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3448,7 +3448,7 @@ object_format(PyObject *self, PyObject *args) goto done; */ } - return PyObject_Format(self_as_str, format_spec); + result = PyObject_Format(self_as_str, format_spec); } done: