PYTHON-1599 Fix unchecked return value in cmessagemodule

This commit is contained in:
Shane Harvey 2018-06-26 13:59:02 -04:00
parent f82706c870
commit b57e6e281f

View File

@ -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: