diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 07:30:51 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 07:30:51 (GMT) |
commit | 32ca3dcb97a75c05dc2b90c88bbf82a541c57c61 (patch) | |
tree | 60e9b695fbc4017a34f2202beef337eb01c347db /Modules | |
parent | 7a27c97216ef1a71bc26a559d7331523875a0c6f (diff) | |
parent | c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8 (diff) | |
download | cpython-32ca3dcb97a75c05dc2b90c88bbf82a541c57c61.zip cpython-32ca3dcb97a75c05dc2b90c88bbf82a541c57c61.tar.gz cpython-32ca3dcb97a75c05dc2b90c88bbf82a541c57c61.tar.bz2 |
Issue #23099: Closing io.BytesIO with exported buffer is rejected now to
prevent corrupting exported buffer.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/bytesio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index 801ddcd..7bbcb6e 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -779,6 +779,7 @@ PyDoc_STRVAR(close_doc, static PyObject * bytesio_close(bytesio *self) { + CHECK_EXPORTS(self); reset(self); Py_RETURN_NONE; } |