]> granicus.if.org Git - python/commitdiff
fix ref counting
authorBenjamin Peterson <benjamin@python.org>
Sat, 5 Jun 2010 01:00:10 +0000 (01:00 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 5 Jun 2010 01:00:10 +0000 (01:00 +0000)
Objects/typeobject.c

index b9498e5fa2ebbd5541b76fcd7049ce0ae807a8b1..605d8a010790acd64739028e440629640956fb4d 100644 (file)
@@ -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: