unimportant fix in cleanup code for Py23 sets support
authorLisandro Dalcin <dalcinl@gmail.com>
Tue, 28 Oct 2008 15:52:43 +0000 (12:52 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Tue, 28 Oct 2008 15:52:43 +0000 (12:52 -0300)
Cython/Compiler/Builtin.py

index c87905ccb161ec1f44ac689e8e7ee867693f3ca8..6605e48677f714b90563ab7bb9981ec4179aecef 100644 (file)
@@ -267,8 +267,8 @@ static int __Pyx_Py23SetsImport(void) { return 0; }
 init = put_py23_set_init_utility_code,
 cleanup = """
 #if PY_VERSION_HEX < 0x02040000
-Py_XDECREF(__Pyx_PySet_Type);
-Py_XDECREF(__Pyx_PyFrozenSet_Type);
+Py_XDECREF(__Pyx_PySet_Type); __Pyx_PySet_Type = NULL;
+Py_XDECREF(__Pyx_PyFrozenSet_Type); __Pyx_PyFrozenSet_Type = NULL;
 #endif /* < Py2.4  */
 """)