@@ -204,7 +204,7 @@ static PyObject* _cbson_get_more_message(PyObject* self, PyObject* args) {
204204 result = Py_BuildValue ("iy#" , request_id ,
205205 pymongo_buffer_get_buffer (buffer ),
206206 (Py_ssize_t )pymongo_buffer_get_position (buffer ));
207- failure :
207+ fail :
208208 PyMem_Free (collection_name );
209209 if (buffer ) {
210210 pymongo_buffer_free (buffer );
@@ -577,7 +577,7 @@ _cbson_encode_batched_op_msg(PyObject* self, PyObject* args) {
577577 pymongo_buffer_get_buffer (buffer ),
578578 (Py_ssize_t )pymongo_buffer_get_position (buffer ),
579579 to_publish );
580- failure :
580+ fail :
581581 destroy_codec_options (& options );
582582 pymongo_buffer_free (buffer );
583583 Py_XDECREF (to_publish );
@@ -648,7 +648,7 @@ _cbson_batched_op_msg(PyObject* self, PyObject* args) {
648648 pymongo_buffer_get_buffer (buffer ),
649649 (Py_ssize_t )pymongo_buffer_get_position (buffer ),
650650 to_publish );
651- failure :
651+ fail :
652652 destroy_codec_options (& options );
653653 pymongo_buffer_free (buffer );
654654 Py_XDECREF (to_publish );
@@ -859,7 +859,6 @@ _batched_write_command(
859859 Py_XDECREF (iterator );
860860 return 0 ;
861861}
862-
863862static PyObject *
864863_cbson_encode_batched_write_command (PyObject * self , PyObject * args ) {
865864 char * ns = NULL ;
@@ -911,7 +910,7 @@ _cbson_encode_batched_write_command(PyObject* self, PyObject* args) {
911910 pymongo_buffer_get_buffer (buffer ),
912911 (Py_ssize_t )pymongo_buffer_get_position (buffer ),
913912 to_publish );
914- failure :
913+ fail :
915914 PyMem_Free (ns );
916915 destroy_codec_options (& options );
917916 pymongo_buffer_free (buffer );
@@ -1041,4 +1040,3 @@ PyMODINIT_FUNC
10411040PyInit__cmessage (void )
10421041{
10431042 return PyModuleDef_Init (& moduledef );
1044- }
0 commit comments