diff Objects/stringlib/string_format.h @ 65961:4c1c48b3af66

Followup to r86170: fix reference leak in str.format
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 05 Nov 2010 12:23:55 +0000
parents 05eed9f0ce01
children 3ef865327d7b
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h	Fri Nov 05 07:10:41 2010 +0000
+++ b/Objects/stringlib/string_format.h	Fri Nov 05 12:23:55 2010 +0000
@@ -509,7 +509,6 @@
             goto error;
         }
         Py_DECREF(key);
-        Py_INCREF(obj);
     }
     else {
         /* look up in args */