Author: neal.norwitz
Date: Mon Aug 27 05:22:50 2007
New Revision: 57548

Modified:
   python/branches/py3k/Objects/stringlib/string_format.h
Log:
This adds a leak, but fixes a crash.  The leaking code is:
  "{0:.{precision}s}".format('hello world', precision=5)
I pretty sure it's because of the 'precision' keyword.
Still need to investigate further.


Modified: python/branches/py3k/Objects/stringlib/string_format.h
==============================================================================
--- python/branches/py3k/Objects/stringlib/string_format.h      (original)
+++ python/branches/py3k/Objects/stringlib/string_format.h      Mon Aug 27 
05:22:50 2007
@@ -416,6 +416,7 @@
             Py_DECREF(key);
             goto error;
         }
+        Py_INCREF(obj);
     } else {
         /* look up in args */
         obj = PySequence_GetItem(args, index);
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to