Skip to content

Commit 4a29023

Browse files
Ne02ptzerokevinAlbs
andcommitted
CDRIVER-5487 use aligned alloc for bson_array_builder_t (#1544)
Signed-off-by: Louis Solofrizzo <[email protected]> Co-authored-by: Kevin Albertson <[email protected]>
1 parent 3dcc158 commit 4a29023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbson/src/bson/bson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3657,7 +3657,7 @@ struct _bson_array_builder_t {
36573657
bson_array_builder_t *
36583658
bson_array_builder_new (void)
36593659
{
3660-
bson_array_builder_t *bab = bson_malloc0 (sizeof (bson_array_builder_t));
3660+
bson_array_builder_t *bab = BSON_ALIGNED_ALLOC0 (bson_array_builder_t);
36613661
bson_init (&bab->bson);
36623662
return bab;
36633663
}

0 commit comments

Comments
 (0)