aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2017-03-09 10:32:09 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-03-09 10:54:07 -0800
commita3e5801e2ef90988074cd6c1b74fb7d876f09533 (patch)
tree9f249eeaaafa06c5b18ab65171d7a221cdd34dd5 /src/core/lib/iomgr
parenta885d00a3843e13ed234f8a13c58a7ff9de4b397 (diff)
s/realloc/gpr_realloc to fix mem bug
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/error.c b/src/core/lib/iomgr/error.c
index 42c2f3e2dd..f0b7e01d49 100644
--- a/src/core/lib/iomgr/error.c
+++ b/src/core/lib/iomgr/error.c
@@ -210,7 +210,7 @@ static uint8_t get_placement(grpc_error **err, size_t size) {
uint8_t slots = (uint8_t)(size / sizeof(intptr_t));
if ((*err)->arena_size + slots > (*err)->arena_capacity) {
(*err)->arena_capacity = (uint8_t)(3 * (*err)->arena_capacity / 2);
- *err = realloc(
+ *err = gpr_realloc(
*err, sizeof(grpc_error) + (*err)->arena_capacity * sizeof(intptr_t));
}
uint8_t placement = (*err)->arena_size;