Skip to content

Commit 8e5021f

Browse files
alexeyvohanumantmk
authored andcommitted
fix mem leak in example
Closes #133
1 parent 5e7d5b4 commit 8e5021f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/example-gridfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ int main (int argc, char *argv[])
6868
}
6969

7070
mongoc_stream_destroy (stream);
71+
mongoc_gridfs_file_destroy (file);
7172
} else if (strcmp(command, "list") == 0) {
7273
bson_init (&query);
7374
bson_append_document_begin (&query, "$orderby", -1, &child);

0 commit comments

Comments
 (0)