summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-05-09 06:45:53 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-05-09 06:45:53 (GMT)
commit6ca6f1472c8d9343f4f0fc8e45fc894c801ae4ca (patch)
tree0627f346a5947fa112f44e20e4358670e09d10ad /Modules
parent27803cee9afe89cb5d12217cb59aa8b7a9eaaa91 (diff)
downloadcpython-6ca6f1472c8d9343f4f0fc8e45fc894c801ae4ca.zip
cpython-6ca6f1472c8d9343f4f0fc8e45fc894c801ae4ca.tar.gz
cpython-6ca6f1472c8d9343f4f0fc8e45fc894c801ae4ca.tar.bz2
Backport r55070: Stop using PyMem_FREE while the GIL is not held.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b984c30..215930f 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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);