diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:12:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-10 15:12:01 (GMT) |
commit | f01e408c1688a207eba18444da8c151c872fba59 (patch) | |
tree | 3330812d856579add4526f10d5284164a15b6037 /Modules/_io/bytesio.c | |
parent | 47c5474aa0cbe8dc3cf2c370b19769edd3f2e8d8 (diff) | |
parent | 57a01d3a0ee20ee9eea69b658c6bac0f39541625 (diff) | |
download | cpython-f01e408c1688a207eba18444da8c151c872fba59.zip cpython-f01e408c1688a207eba18444da8c151c872fba59.tar.gz cpython-f01e408c1688a207eba18444da8c151c872fba59.tar.bz2 |
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
Diffstat (limited to 'Modules/_io/bytesio.c')
-rw-r--r-- | Modules/_io/bytesio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index 84d2c5d..ca3a639 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -96,7 +96,7 @@ unshare_buffer(bytesio *self, size_t size) return -1; memcpy(PyBytes_AS_STRING(new_buf), PyBytes_AS_STRING(self->buf), self->string_size); - Py_XSETREF(self->buf, new_buf); + Py_SETREF(self->buf, new_buf); return 0; } |