summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index eee607f..e87f790 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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;
}