diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-03-05 16:45:17 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-03-05 16:45:17 (GMT) |
commit | 1649c1b33a1d8f46ccf97b8373f62a22bbb3fde6 (patch) | |
tree | 36e4da0291c5bd73fbe2aa5b077ff10b30d07651 /Objects | |
parent | bf6c7eca43d7c7d80525c97af08aef52ec81e4a1 (diff) | |
download | cpython-1649c1b33a1d8f46ccf97b8373f62a22bbb3fde6.zip cpython-1649c1b33a1d8f46ccf97b8373f62a22bbb3fde6.tar.gz cpython-1649c1b33a1d8f46ccf97b8373f62a22bbb3fde6.tar.bz2 |
Issue #14181: Preserve backwards compatibility for getbufferprocs that a) do
not adhere to the new documentation and b) manage to clobber view->obj before
returning failure.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/memoryobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 8ffdd41..67f7e01 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -86,7 +86,7 @@ _PyManagedBuffer_FromObject(PyObject *base) return NULL; if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { - /* mbuf->master.obj must be NULL. */ + mbuf->master.obj = NULL; Py_DECREF(mbuf); return NULL; } |