summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-27 07:24:17 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-27 07:24:17 (GMT)
commit8a4eb298e25580241feb190cb3c3cc492fa65369 (patch)
treed1e8579cb49983322a29fbf4e345d6ba5fdc8d73 /Objects/stringlib
parent2bad9702930f620b61c8bc3cec3d4cd811df3693 (diff)
downloadcpython-8a4eb298e25580241feb190cb3c3cc492fa65369.zip
cpython-8a4eb298e25580241feb190cb3c3cc492fa65369.tar.gz
cpython-8a4eb298e25580241feb190cb3c3cc492fa65369.tar.bz2
Fix refleaks in test_unicode and test_string related to the new format code.
Stop polluting namespace.
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/string_format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h
index 4ae7e57..c2916fd 100644
--- a/Objects/stringlib/string_format.h
+++ b/Objects/stringlib/string_format.h
@@ -416,6 +416,7 @@ get_field_object(SubString *input, PyObject *args, PyObject *kwargs)
Py_DECREF(key);
goto error;
}
+ Py_DECREF(key);
Py_INCREF(obj);
} else {
/* look up in args */