mongoc_socket_destroy man page
mongoc_socket_destroy — mongoc_socket_destroy()
void mongoc_socket_destroy (mongoc_socket_t *sock);
sock: A mongoc_socket_t.
This function releases all resources associated with a mongoc_socket_t. This should be called when you are no longer using the socket.
2017, MongoDB, Inc
Mar 28, 2017 1.6.2 MongoDB C Driver