diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 00:00:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-03 00:00:18 (GMT) |
commit | c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8 (patch) | |
tree | b3002ee88ef675225cec5abe608ab934aefc6ae4 /Modules | |
parent | b5e8e5755586820a278326e2aa55b8ff755f0a59 (diff) | |
download | cpython-c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8.zip cpython-c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8.tar.gz cpython-c057c3859c68f2e86c7a492ae8f8b4b3a3b136c8.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 57c2073..1537d97 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -657,6 +657,7 @@ PyDoc_STRVAR(close_doc, static PyObject * bytesio_close(bytesio *self) { + CHECK_EXPORTS(self); if (self->buf != NULL) { PyMem_Free(self->buf); self->buf = NULL; |