python/dist/src/Modules mmapmodule.c, 2.46, 2.46.6.1
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11696 Modified Files: Tag: release23-maint mmapmodule.c Log Message: Set data pointer to NULL after an error; this keeps the mmap_dealloc() function from trying to do msync(-1);munmap(-1). Index: mmapmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/mmapmodule.c,v retrieving revision 2.46 retrieving revision 2.46.6.1 diff -C2 -d -r2.46 -r2.46.6.1 *** mmapmodule.c 15 Jul 2003 12:37:46 -0000 2.46 --- mmapmodule.c 1 Jun 2004 13:00:16 -0000 2.46.6.1 *************** *** 918,921 **** --- 918,922 ---- fd, 0); if (m_obj->data == (char *)-1) { + m_obj->data = NULL; Py_DECREF(m_obj); PyErr_SetFromErrno(mmap_module_error);
participants (1)
-
akuchling@users.sourceforge.net