DOKK / manpages / debian 11 / libmongoc-doc / mongoc_client_destroy.3.en
MONGOC_CLIENT_DESTROY(3) libmongoc MONGOC_CLIENT_DESTROY(3)

mongoc_client_destroy - mongoc_client_destroy()

void
mongoc_client_destroy (mongoc_client_t *client);


Release all resources associated with client and free the structure. Does nothing if client is NULL.

Only call mongoc_client_destroy on a single-threaded client. Do not call on a mongoc_client_t obtained from a mongoc_client_pool_t, which should instead be pushed back with mongoc_client_pool_push().

client: A mongoc_client_t.

mongoc_client_pool_push() to push a multi-threaded client back onto a pool.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6