diff Objects/stringlib/string_format.h @ 42894:6b4781dc81ff

Fix refleaks in test_unicode and test_string related to the new format code. Stop polluting namespace.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 27 Aug 2007 07:24:17 +0000
parents 252a84280b73
children b110bac9df40
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h	Mon Aug 27 06:19:22 2007 +0000
+++ b/Objects/stringlib/string_format.h	Mon Aug 27 07:24:17 2007 +0000
@@ -416,6 +416,7 @@
             Py_DECREF(key);
             goto error;
         }
+        Py_DECREF(key);
         Py_INCREF(obj);
     } else {
         /* look up in args */