Fix NULL check in sock_sendmsg_iovec. CID 1372885
This commit is contained in:
parent
7a9e993f41
commit
faf2cea1fd
|
@ -3943,7 +3943,7 @@ sock_sendmsg_iovec(PySocketSockObject *s, PyObject *data_arg,
|
|||
msg->msg_iov = iovs;
|
||||
|
||||
databufs = PyMem_New(Py_buffer, ndataparts);
|
||||
if (iovs == NULL) {
|
||||
if (databufs == NULL) {
|
||||
PyErr_NoMemory();
|
||||
goto finally;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue