Skip to content

Commit f4e4148

Browse files
author
Christian Hergert
committed
cluster: ensure we release the command when we are done with it.
1 parent 995d76a commit f4e4148

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mongoc/mongoc-cluster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,8 @@ _mongoc_cluster_auth_node_cr (mongoc_cluster_t *cluster,
12521252
RETURN (false);
12531253
}
12541254

1255+
bson_destroy (&command);
1256+
12551257
if (!bson_iter_init_find_case(&iter, &reply, "ok") ||
12561258
!bson_iter_as_bool(&iter)) {
12571259
bson_set_error(error,

0 commit comments

Comments
 (0)