From 45b477e3f54aa8e4af0df764dc60bae9a233e9e6 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Wed, 15 Jul 2015 22:13:34 -0700 Subject: Fixed small leak. --- src/core/surface/call.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)) { -- cgit v1.2.3