Skip to content

Commit 0931b30

Browse files
committed
Free allocated memory in tests
1 parent 3660444 commit 0931b30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libmongoc/tests/test-mongoc-structured-log.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ test_plain_log_entry ()
8585
ASSERT_CMPINT (assumption.calls, =, 1);
8686

8787
restore_state (&old_state);
88+
89+
bson_destroy (assumption.expected_entry.structured_message);
8890
}
8991

9092
void
@@ -124,6 +126,8 @@ test_log_entry_with_extra_data ()
124126
ASSERT_CMPINT (assumption.calls, =, 1);
125127

126128
restore_state (&old_state);
129+
130+
bson_destroy (assumption.expected_entry.structured_message);
127131
}
128132

129133
void

0 commit comments

Comments
 (0)