Skip to content

Commit 95dc35b

Browse files
committed
CDRIVER-1165: _mongoc_init_dtor() should restore its memory vtable before cleanup
1 parent 3c2a0ef commit 95dc35b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongoc/mongoc-init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static void _mongoc_init_dtor (void) __attribute__((destructor));
166166
static void
167167
_mongoc_init_dtor (void)
168168
{
169+
bson_mem_restore_vtable ();
169170
mongoc_cleanup ();
170171
}
171172
#endif

0 commit comments

Comments
 (0)