aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2015-07-15 22:13:34 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2015-07-15 22:13:34 -0700
commit45b477e3f54aa8e4af0df764dc60bae9a233e9e6 (patch)
treedc208a2058cecd5c34ba2e0f3ccd7656453b4a9d
parente0d581b6ad1023635598d9de95bd951cd04b0354 (diff)
Fixed small leak.
-rw-r--r--src/core/surface/call.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c
index a5d849a076..0dfc4313bb 100644
--- a/src/core/surface/call.c
+++ b/src/core/surface/call.c
@@ -801,6 +801,8 @@ static int begin_message(grpc_call *call, grpc_begin_message msg) {
"Invalid compression algorithm (%s) for compressed message.",
alg_name);
cancel_with_status(call, GRPC_STATUS_INTERNAL, message);
+ gpr_free(message);
+ return 0;
}
/* stash away parameters, and prepare for incoming slices */
if (msg.length > grpc_channel_get_max_message_length(call->channel)) {