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

Fix memory corruption bug

parent 609d68a0
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, ...@@ -828,7 +828,7 @@ void grpc_server_shutdown_and_notify(grpc_server *server,
grpc_cq_begin_op(cq, NULL); grpc_cq_begin_op(cq, NULL);
server->shutdown_tags = server->shutdown_tags =
gpr_realloc(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 = &server->shutdown_tags[server->num_shutdown_tags++];
sdt->tag = tag; sdt->tag = tag;
sdt->cq = cq; 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