Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2432:cfc510bd81d7
Date: 2015-11-24 17:40 +0100
http://bitbucket.org/cffi/cffi/changeset/cfc510bd81d7/

Log:    One more corner case

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -5778,6 +5778,10 @@
     }
 
     view = PyObject_Malloc(sizeof(Py_buffer));
+    if (view == NULL) {
+        PyErr_NoMemory();
+        return NULL;
+    }
     if (_my_PyObject_GetContiguousBuffer(x, view, 0) < 0)
         goto error1;
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to