diff options
-rw-r--r-- | src/core/channel/http_server_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/channel/http_server_filter.c b/src/core/channel/http_server_filter.c index bb676a4068..2658a6d42e 100644 --- a/src/core/channel/http_server_filter.c +++ b/src/core/channel/http_server_filter.c @@ -320,7 +320,7 @@ static void init_channel_elem(grpc_channel_element *elem, gettable_capacity = GPR_MAX(gettable_capacity * 3 / 2, gettable_capacity + 1); channeld->gettables = - gpr_realloc(channeld->gettables, gettable_capacity); + gpr_realloc(channeld->gettables, gettable_capacity * sizeof(gettable)); } g = &channeld->gettables[channeld->gettable_count++]; g->path = grpc_mdelem_from_strings(mdctx, ":path", p->path); |