Skip to content

Commit 7587d72

Browse files
bjorihanumantmk
authored andcommitted
CDRIVER-487: Missing entry calls
Closes #142
1 parent cbe6b33 commit 7587d72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mongoc/mongoc-cursor.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ _mongoc_cursor_new (mongoc_client_t *client,
321321
void
322322
mongoc_cursor_destroy (mongoc_cursor_t *cursor)
323323
{
324-
BSON_ASSERT(cursor);
325-
326324
ENTRY;
327325

326+
BSON_ASSERT(cursor);
327+
328328
if (cursor->iface.destroy) {
329329
cursor->iface.destroy(cursor);
330330
} else {
@@ -685,6 +685,8 @@ mongoc_cursor_error (mongoc_cursor_t *cursor,
685685
{
686686
bool ret;
687687

688+
ENTRY;
689+
688690
BSON_ASSERT(cursor);
689691

690692
if (cursor->iface.error) {

0 commit comments

Comments
 (0)