From: Antoine Pitrou Date: Fri, 5 Nov 2010 12:23:55 +0000 (+0000) Subject: Followup to r86170: fix reference leak in str.format X-Git-Tag: v3.2a4~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a277ec4ad97e68ab4136955dfb9962bc387a3044;p=python Followup to r86170: fix reference leak in str.format --- diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index 5205aa9fbc..40535457f3 100644 --- a/Objects/stringlib/string_format.h +++ b/Objects/stringlib/string_format.h @@ -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 */