PYTHON-1599 Fix unchecked return value in cmessagemodule
This commit is contained in:
parent
f82706c870
commit
b57e6e281f
@ -1199,6 +1199,10 @@ _batched_op_msg(
|
||||
}
|
||||
/* Save space for size */
|
||||
size_location = buffer_save_space(buffer, 4);
|
||||
if (size_location == -1) {
|
||||
PyErr_NoMemory();
|
||||
return 0;
|
||||
}
|
||||
|
||||
switch (op) {
|
||||
case _INSERT:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user