mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Check return result for error
This commit is contained in:
@@ -356,6 +356,8 @@ buffer_concat(PyBufferObject *self, PyObject *other)
|
||||
return NULL;
|
||||
|
||||
ob = PyString_FromStringAndSize(NULL, size + count);
|
||||
if ( ob == NULL )
|
||||
return NULL;
|
||||
p = PyString_AS_STRING(ob);
|
||||
memcpy(p, ptr1, size);
|
||||
memcpy(p + size, ptr2, count);
|
||||
|
||||
Reference in New Issue
Block a user