Skip to content

Commit 798a71a

Browse files
committed
Remove superfluous bson_reader_destroy
1 parent e025cb0 commit 798a71a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libmongoc/src/mongoc/mongoc-write-command-legacy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ _mongoc_write_command_update_legacy (mongoc_write_command_t *command,
405405

406406
ns = bson_strdup_printf ("%s.%s", database, collection);
407407

408-
bson_reader_destroy (reader);
409408
reader =
410409
bson_reader_new_from_data (command->payload.data, command->payload.len);
411410
while ((bson = bson_reader_read (reader, &eof))) {

0 commit comments

Comments
 (0)