Skip to content

Commit

Permalink
PYTHON-1647 Fix memory leak in OP_MSG C extensions
Browse files Browse the repository at this point in the history
(cherry picked from commit d571ac0)
  • Loading branch information
ShaneHarvey committed Oct 9, 2018
1 parent b601c15 commit c80d285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymongo/_cmessagemodule.c
Expand Up @@ -762,6 +762,7 @@ static PyObject* _cbson_op_msg(PyObject* self, PyObject* args) {
Py_XDECREF(iterator);
buffer_free(buffer);
bufferfail:
PyMem_Free(identifier);
destroy_codec_options(&options);
return result;
}
Expand Down

0 comments on commit c80d285

Please sign in to comment.