]> granicus.if.org Git - python/commitdiff
Remove the Py_TPFLAGS_HAVE_GC from the _ctypes.COMError type.
authorThomas Heller <theller@ctypes.org>
Wed, 26 Nov 2008 18:40:58 +0000 (18:40 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 26 Nov 2008 18:40:58 +0000 (18:40 +0000)
Fixes issue #4433; reviewed by Benjamin Peterson.

Misc/NEWS
Modules/_ctypes/_ctypes.c

index 6145654c064a68db23f79bedbbd6241b0f7e63b7..0ff809cbc8d61b29e8dfdbe0c68bc59a049815d1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #4433: Fixed an access violation when garbage collecting
+  _ctypes.COMError instances.
+
 - Issue #4429: Fixed UnicodeDecodeError in ctypes.
 
 - Issue #4373: Corrected a potential reference leak in the pickle module and
index 11a725dc97fc9dc075731d87cfd73342ee07af10..a003a6cf3757f224c5742031de3489f9bb9a56fe 100644 (file)
@@ -5097,8 +5097,7 @@ static PyTypeObject PyComError_Type = {
     0,                          /* tp_getattro */
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
-    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
-        | Py_TPFLAGS_HAVE_GC,   /* tp_flags */
+    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,   /* tp_flags */
     PyDoc_STR(comerror_doc),    /* tp_doc */
     0,                          /* tp_traverse */
     0,                          /* tp_clear */