summaryrefslogtreecommitdiffstats
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c1
1 files changed, 1 insertions, 0 deletions
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 @@ make_Zreplacement(PyObject *object, PyObject *tzinfoarg)
Zreplacement, NULL);
if (Zreplacement == NULL)
return NULL;
+ Py_INCREF(Zreplacement);
}
if (!PyString_Check(Zreplacement)) {
PyErr_SetString(PyExc_TypeError,