Skip to content
Snippets Groups Projects
Commit 40877127 authored by Craig Tiller's avatar Craig Tiller Committed by GitHub
Browse files

Merge pull request #9631 from ctiller/no_no_error

Save allocating a grpc_error if there is no error
parents 5ef95a96 8c58a489
No related branches found
No related tags found
No related merge requests found
......@@ -897,7 +897,7 @@ static void recv_common_filter(grpc_exec_ctx *exec_ctx, grpc_call *call,
error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, msg);
gpr_free(msg);
grpc_metadata_batch_remove(exec_ctx, b, b->idx.named.grpc_message);
} else {
} else if (error != GRPC_ERROR_NONE) {
error = grpc_error_set_str(error, GRPC_ERROR_STR_GRPC_MESSAGE, "");
}
......
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