Author: guido.van.rossum
Date: Fri Aug 10 21:26:04 2007
New Revision: 56907

Modified:
   python/branches/py3k/Modules/datetimemodule.c
Log:
Fix refcount bug in make_Zreplacement().


Modified: python/branches/py3k/Modules/datetimemodule.c
==============================================================================
--- python/branches/py3k/Modules/datetimemodule.c       (original)
+++ python/branches/py3k/Modules/datetimemodule.c       Fri Aug 10 21:26:04 2007
@@ -1159,6 +1159,7 @@
                                                Zreplacement, NULL);
                                if (Zreplacement == NULL)
                                        return NULL;
+                                Py_INCREF(Zreplacement);
                        }
                        if (!PyString_Check(Zreplacement)) {
                                PyErr_SetString(PyExc_TypeError,
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to