[Python-checkins] r55200 - python/branches/release25-maint/Modules/posixmodule.c
neal.norwitz
python-checkins at python.org
Wed May 9 08:45:53 CEST 2007
Author: neal.norwitz
Date: Wed May 9 08:45:53 2007
New Revision: 55200
Modified:
python/branches/release25-maint/Modules/posixmodule.c
Log:
Backport r55070: Stop using PyMem_FREE while the GIL is not held.
Modified: python/branches/release25-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release25-maint/Modules/posixmodule.c (original)
+++ python/branches/release25-maint/Modules/posixmodule.c Wed May 9 08:45:53 2007
@@ -6207,8 +6207,8 @@
#else
fp = fdopen(fd, mode);
#endif
- PyMem_FREE(mode);
Py_END_ALLOW_THREADS
+ PyMem_FREE(mode);
if (fp == NULL)
return posix_error();
f = PyFile_FromFile(fp, "<fdopen>", orgmode, fclose);
More information about the Python-checkins
mailing list