mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Backport r55070: Stop using PyMem_FREE while the GIL is not held.
This commit is contained in:
parent
27803cee9a
commit
6ca6f1472c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue