From 8a4eb298e25580241feb190cb3c3cc492fa65369 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 27 Aug 2007 07:24:17 +0000 Subject: Fix refleaks in test_unicode and test_string related to the new format code. Stop polluting namespace. --- Objects/stringlib/string_format.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Objects/stringlib/string_format.h') diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index 4ae7e578f24..c2916fdd566 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 */ -- cgit v1.2.3