-
-
Save cmb69/616f862e90c9b6d6f7b96d09dfc92062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext/mysqlnd/mysqlnd_block_alloc.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/ext/mysqlnd/mysqlnd_block_alloc.c b/ext/mysqlnd/mysqlnd_block_alloc.c | |
index e1d3f846ec..10f6bd3b6d 100644 | |
--- a/ext/mysqlnd/mysqlnd_block_alloc.c | |
+++ b/ext/mysqlnd/mysqlnd_block_alloc.c | |
@@ -161,7 +161,7 @@ mysqlnd_mempool_create(size_t arena_size) | |
MYSQLND_MEMORY_POOL * ret; | |
DBG_ENTER("mysqlnd_mempool_create"); | |
- arena = mysqlnd_arena_create(MAX(arena_size, sizeof(zend_arena))); | |
+ arena = mysqlnd_arena_create(MAX(arena_size, ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)))); | |
ret = mysqlnd_arena_alloc(&arena, sizeof(MYSQLND_MEMORY_POOL)); | |
ret->arena = arena; | |
ret->last = NULL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment