[Python-checkins] python/dist/src/Modules mmapmodule.c,2.47,2.48
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Wed May 19 10:39:11 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20451
Modified Files:
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).
2.3 bugfix candidate, but this bug isn't critical enough that the fix has to go into 2.3.4
Index: mmapmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mmapmodule.c,v
retrieving revision 2.47
retrieving revision 2.48
diff -C2 -d -r2.47 -r2.48
*** mmapmodule.c 17 Jan 2004 14:19:44 -0000 2.47
--- mmapmodule.c 19 May 2004 14:39:08 -0000 2.48
***************
*** 913,916 ****
--- 913,917 ----
fd, 0);
if (m_obj->data == (char *)-1) {
+ m_obj->data = NULL;
Py_DECREF(m_obj);
PyErr_SetFromErrno(mmap_module_error);
More information about the Python-checkins
mailing list