diff options
author | Craig Tiller <ctiller@google.com> | 2015-05-29 08:50:08 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-05-29 08:50:26 -0700 |
commit | 41508f117535f0429626c1e35f5f3269db27c3ea (patch) | |
tree | 8546cdc8fff7e27be685197e2dfa2f70ebf69171 /src | |
parent | 609d68a032d24722e54f52d8abe49823b73645be (diff) |
Fix memory corruption bug
Diffstat (limited to 'src')
-rw-r--r-- | src/core/surface/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/server.c b/src/core/surface/server.c index b1e3ec9876..20985af44c 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -828,7 +828,7 @@ void grpc_server_shutdown_and_notify(grpc_server *server, grpc_cq_begin_op(cq, NULL); server->shutdown_tags = gpr_realloc(server->shutdown_tags, - sizeof(void *) * (server->num_shutdown_tags + 1)); + sizeof(shutdown_tag) * (server->num_shutdown_tags + 1)); sdt = &server->shutdown_tags[server->num_shutdown_tags++]; sdt->tag = tag; sdt->cq = cq; |