Skip to content

Commit 9dbc8b0

Browse files
committed
Merge pull request #44 from gjmurakami-10gen/examples-bulk
fix missing mongoc_bulk_operation_destroy
2 parents 3bcf0ad + 12ac8ad commit 9dbc8b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/bulk/bulk1.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ bulk1 (mongoc_collection_t *collection)
2727
str = bson_as_json (&reply, NULL);
2828
printf ("%s\n", str);
2929
bson_free (str);
30-
bson_destroy (&reply);
3130

3231
if (!ret) {
3332
fprintf (stderr, "Error: %s\n", error.message);
3433
}
34+
35+
bson_destroy (&reply);
36+
mongoc_bulk_operation_destroy (bulk);
3537
}
3638

3739
int

0 commit comments

Comments
 (0)