commit | e9fb515d4679f5534d95cc7e277e796b4a25c0d4 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 10 19:26:04 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 10 19:26:04 2007 +0000 |
tree | ef1df79b95162656f525ea0a6c495681fd7dfc28 | |
parent | e6b59c5550227505dfc787ebec605e51e50a6e46 [diff] [blame] |
Fix refcount bug in make_Zreplacement().
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 61bba86..d220b56 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c
@@ -1159,6 +1159,7 @@ Zreplacement, NULL); if (Zreplacement == NULL) return NULL; + Py_INCREF(Zreplacement); } if (!PyString_Check(Zreplacement)) { PyErr_SetString(PyExc_TypeError,