mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix NULL check in sock_sendmsg_iovec. CID 1372885
This commit is contained in:
commit
30386a2a36
1 changed files with 1 additions and 1 deletions
|
@ -3943,7 +3943,7 @@ sock_sendmsg_iovec(PySocketSockObject *s, PyObject *data_arg,
|
||||||
msg->msg_iov = iovs;
|
msg->msg_iov = iovs;
|
||||||
|
|
||||||
databufs = PyMem_New(Py_buffer, ndataparts);
|
databufs = PyMem_New(Py_buffer, ndataparts);
|
||||||
if (iovs == NULL) {
|
if (databufs == NULL) {
|
||||||
PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
goto finally;
|
goto finally;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue