Skip to content

Commit 15129ab

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix mnd_malloc -> mnd_emalloc from previous merge
2 parents 6a4618f + ced5581 commit 15129ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysqlnd/mysqlnd_ps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,11 @@ MYSQLND_METHOD(mysqlnd_stmt, prepare)(MYSQLND_STMT * const s, const char * const
399399

400400
/* swap */
401401
size_t real_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *);
402-
char * tmp_swap = mnd_malloc(real_size);
402+
char * tmp_swap = mnd_emalloc(real_size);
403403
memcpy(tmp_swap, s, real_size);
404404
memcpy(s, s_to_prepare, real_size);
405405
memcpy(s_to_prepare, tmp_swap, real_size);
406-
mnd_free(tmp_swap);
406+
mnd_efree(tmp_swap);
407407
{
408408
MYSQLND_STMT_DATA * tmp_swap_data = stmt_to_prepare;
409409
stmt_to_prepare = stmt;

0 commit comments

Comments
 (0)