]> granicus.if.org Git - python/commitdiff
Followup to r86170: fix reference leak in str.format
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Nov 2010 12:23:55 +0000 (12:23 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Nov 2010 12:23:55 +0000 (12:23 +0000)
Objects/stringlib/string_format.h

index 5205aa9fbc418fb9136a3eec74bd01eeae0dbfa6..40535457f3844310e49dfcac1f382e34f2496780 100644 (file)
@@ -509,7 +509,6 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs,
             goto error;
         }
         Py_DECREF(key);
-        Py_INCREF(obj);
     }
     else {
         /* look up in args */