summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-05 12:23:55 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-05 12:23:55 (GMT)
commita277ec4ad97e68ab4136955dfb9962bc387a3044 (patch)
tree8ed98b6c2402f7a4c830edb62db1f7be5c59f46a /Objects
parentc275e15489c58c4bde33b746eda6612b9a9a90ca (diff)
downloadcpython-a277ec4ad97e68ab4136955dfb9962bc387a3044.zip
cpython-a277ec4ad97e68ab4136955dfb9962bc387a3044.tar.gz
cpython-a277ec4ad97e68ab4136955dfb9962bc387a3044.tar.bz2
Followup to r86170: fix reference leak in str.format
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringlib/string_format.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h
index 5205aa9..4053545 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 */