Skip to content
Snippets Groups Projects
Commit 208d212f authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix memory corruption bug

parent 5c0f97d5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment