com php-src: Use mnd_erealloc(): ext/mysqlnd/mysqlnd _result.c
| From: | Dmitry Stogov | Date: | Tue, 14 Nov 2017 13:19:44 +0000 |
| Subject: | com php-src: Use mnd_erealloc(): ext/mysqlnd/mysqlnd _result.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100228@lists.php.net to get a copy of this message | ||
Commit: 3077a14aea635f36fbd5b2dd28a435c58067bf59
Author: Dmitry Stogov <dmitry@zend.com> Tue, 14 Nov 2017 16:19:44 +0300
Parents: 148641980cefa66ef7ad63ad5c2e187cae274a88
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3077a14aea635f36fbd5b2dd28a435c58067bf59
Log:
Use mnd_erealloc()
Changed paths:
M ext/mysqlnd/mysqlnd_result.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c
index ddefc9e..55c68eb 100644
--- a/ext/mysqlnd/mysqlnd_result.c
+++ b/ext/mysqlnd/mysqlnd_result.c
@@ -1317,7 +1317,7 @@ MYSQLND_METHOD(mysqlnd_res, store_result_fetch_data)(MYSQLND_CONN_DATA * const
c
ret = FAIL;
goto free_end;
}
- new_row_buffers = mnd_perealloc(*row_buffers, (size_t)(total_allocated_rows *
sizeof(MYSQLND_MEMORY_POOL_CHUNK *)), 0);
+ new_row_buffers = mnd_erealloc(*row_buffers, (size_t)(total_allocated_rows *
sizeof(MYSQLND_MEMORY_POOL_CHUNK *)));
if (!new_row_buffers) {
SET_OOM_ERROR(conn->error_info);
ret = FAIL;
@@ -1361,7 +1361,7 @@ MYSQLND_METHOD(mysqlnd_res, store_result_fetch_data)(MYSQLND_CONN_DATA * const
c
ret = FAIL;
goto free_end;
}
- *row_buffers = mnd_perealloc(*row_buffers, (size_t) (set->row_count *
sizeof(MYSQLND_MEMORY_POOL_CHUNK *)), 0);
+ *row_buffers = mnd_erealloc(*row_buffers, (size_t) (set->row_count *
sizeof(MYSQLND_MEMORY_POOL_CHUNK *)));
}
if (UPSERT_STATUS_GET_SERVER_STATUS(conn->upsert_status) & SERVER_MORE_RESULTS_EXISTS) {