From 4c530130302ee74c49dfd44f5068c563af1aeb30 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 16 May 2003 22:44:06 +0000 Subject: [PATCH] Turns out there wasn't a need to define tp_free for any of the types here. --- Modules/datetimemodule.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 66fb3554188..d25eb7048ba 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -2117,7 +2117,7 @@ static PyTypeObject PyDateTime_DeltaType = { 0, /* tp_init */ 0, /* tp_alloc */ delta_new, /* tp_new */ - PyObject_Del, /* tp_free */ + 0, /* tp_free */ }; /* @@ -2670,7 +2670,7 @@ static PyTypeObject PyDateTime_DateType = { 0, /* tp_init */ 0, /* tp_alloc */ date_new, /* tp_new */ - PyObject_Del, /* tp_free */ + 0, /* tp_free */ }; /* @@ -3441,7 +3441,7 @@ statichere PyTypeObject PyDateTime_TimeType = { 0, /* tp_init */ 0, /* tp_alloc */ time_new, /* tp_new */ - PyObject_Del, /* tp_free */ + 0, /* tp_free */ }; /* @@ -4462,7 +4462,7 @@ statichere PyTypeObject PyDateTime_DateTimeType = { 0, /* tp_init */ 0, /* tp_alloc */ datetime_new, /* tp_new */ - PyObject_Del, /* tp_free */ + 0, /* tp_free */ }; /* ---------------------------------------------------------------------------