commit | 7d12d9df136b45785fb945dcb4812fdb068a2498 | [log] [tgz] |
---|---|---|
author | Stefan Krah <skrah@bytereef.org> | Sat Jul 28 12:25:55 2012 +0200 |
committer | Stefan Krah <skrah@bytereef.org> | Sat Jul 28 12:25:55 2012 +0200 |
tree | a68da71ef9e618cad72d9d6b589d6bdbc589873e | |
parent | 6c779ea55329947577119b8a7ea732f6d540d516 [diff] [blame] |
Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 5b7083d..2bb3a29 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c
@@ -789,7 +789,7 @@ size = view.len; if (PyByteArray_Resize((PyObject *)self, size) < 0) goto fail; if (PyBuffer_ToContiguous(self->ob_bytes, &view, size, 'C') < 0) - goto fail; + goto fail; PyBuffer_Release(&view); return 0; fail: