From 32c5d424fd31a283651fddbb1be10d33184bbf5d Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Wed, 15 Jun 2005 13:35:08 +0000 Subject: [PATCH] Michael Hudson pointed out that the Dialect_Type object isn't INCREF'd. Why this worked is a bit mystical. Perhaps it never gets freed because the object just happens never to be DECREF'd (but that seems unlikely). --- Modules/_csv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_csv.c b/Modules/_csv.c index 79870c0490..da5ae0d238 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -1587,6 +1587,7 @@ init_csv(void) } /* Add the Dialect type */ + Py_INCREF(&Dialect_Type); if (PyModule_AddObject(module, "Dialect", (PyObject *)&Dialect_Type)) return; -- 2.49.0