Skip to content

Commit 5401824

Browse files
committed
new leak in write commands
From the CDRIVER-523 merge, not a prior bug
1 parent 11a63f9 commit 5401824

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mongoc/mongoc-write-command.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ _mongoc_write_command_update_append (mongoc_write_command_t *command,
131131
BSON_APPEND_DOCUMENT (command->documents, key, &doc);
132132
command->n_documents++;
133133

134+
bson_destroy (&doc);
135+
134136
EXIT;
135137
}
136138

0 commit comments

Comments
 (0)