diff options
author | 2015-01-21 13:41:30 -0800 | |
---|---|---|
committer | 2015-01-21 13:53:16 -0800 | |
commit | b7e0cb56bed6ba18a28ce4bc4013dc667d485781 (patch) | |
tree | c25d792f4bf77804664ababa07a78db0e036d180 /src/core/channel | |
parent | 3948412b15672834ba099756cf9bf62ddc06ac78 (diff) |
Allocate the correct amount of memory
Diffstat (limited to 'src/core/channel')
-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); |