Skip to content

Commit ba46b5e

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-c-driver
* 'master' of github.com:mongodb/mongo-c-driver: typo in mongoc_uri_t.rst typo in mongoc-config.h CDRIVER-2252 leak in mongoc_client_kill_cursors
2 parents 759c969 + 8fb2e79 commit ba46b5e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/mongoc_uri_t.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Mechanism Properties
101101
========================================== ================================= =========================================================================================================================================================================================================================
102102
Constant Key Description
103103
========================================== ================================= =========================================================================================================================================================================================================================
104-
MONGOC_URI_CANONICALIZEHOSTNAME canonicalizehostname Use the canonical hostname of the service, rather then configured alias.
104+
MONGOC_URI_CANONICALIZEHOSTNAME canonicalizehostname Use the canonical hostname of the service, rather than configured alias.
105105
MONGOC_URI_GSSAPISERVICENAME gssapiservicename Use alternative service name. The default is ``mongodb``.
106106
========================================== ================================= =========================================================================================================================================================================================================================
107107

src/mongoc/mongoc-client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ mongoc_client_kill_cursor (mongoc_client_t *client, int64_t cursor_id)
18431843
if (!mongoc_topology_compatible (&topology->description, NULL, &error)) {
18441844
MONGOC_ERROR ("Could not kill cursor: %s", error.message);
18451845
mongoc_mutex_unlock (&topology->mutex);
1846+
mongoc_read_prefs_destroy (read_prefs);
18461847
return;
18471848
}
18481849

src/mongoc/mongoc-config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138

139139
/*
140-
* Use ASN1_STRING_get0_data () rather then the deprecated ASN1_STRING_data
140+
* Use ASN1_STRING_get0_data () rather than the deprecated ASN1_STRING_data
141141
*/
142142
#define MONGOC_HAVE_ASN1_STRING_GET0_DATA @MONGOC_HAVE_ASN1_STRING_GET0_DATA@
143143

0 commit comments

Comments
 (0)