Backport r55070: Stop using PyMem_FREE while the GIL is not held.

This commit is contained in:
Neal Norwitz 2007-05-09 06:45:53 +00:00
parent 27803cee9a
commit 6ca6f1472c
1 changed files with 1 additions and 1 deletions

View File

@ -6207,8 +6207,8 @@ posix_fdopen(PyObject *self, PyObject *args)
#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);