[Python-checkins] r69636 - python/branches/io-c/Modules/io.c

benjamin.peterson python-checkins at python.org
Sun Feb 15 15:31:44 CET 2009


Author: benjamin.peterson
Date: Sun Feb 15 15:31:42 2009
New Revision: 69636

Log:
dealloc unsupported_operation

Modified:
   python/branches/io-c/Modules/io.c

Modified: python/branches/io-c/Modules/io.c
==============================================================================
--- python/branches/io-c/Modules/io.c	(original)
+++ python/branches/io-c/Modules/io.c	Sun Feb 15 15:31:42 2009
@@ -544,6 +544,7 @@
     Py_CLEAR(mod->os_module);
     if (mod->locale_module != NULL)
         Py_CLEAR(mod->locale_module);
+    Py_CLEAR(mod->unsupported_operation);
     return 0;
 }
 
@@ -616,6 +617,7 @@
         "UnsupportedOperation", PyExc_ValueError, PyExc_IOError);
     if (state->unsupported_operation == NULL)
         goto fail;
+    Py_INCREF(state->unsupported_operation);
     PyModule_AddObject(m, "UnsupportedOperation",
                        state->unsupported_operation);
 


More information about the Python-checkins mailing list