Fix a memory leak

pull/18261/head
yang-g 6 years ago
parent 932fdf398e
commit 8369b05529
  1. 2
      src/core/lib/compression/stream_compression_gzip.cc

@ -60,7 +60,7 @@ static bool gzip_flate(grpc_stream_compression_context_gzip* ctx,
if (r < 0 && r != Z_BUF_ERROR) { if (r < 0 && r != Z_BUF_ERROR) {
gpr_log(GPR_ERROR, "zlib error (%d)", r); gpr_log(GPR_ERROR, "zlib error (%d)", r);
grpc_slice_unref_internal(slice_out); grpc_slice_unref_internal(slice_out);
grpc_slice_unref_internal(slice);
return false; return false;
} else if (r == Z_STREAM_END && ctx->flate == inflate) { } else if (r == Z_STREAM_END && ctx->flate == inflate) {
eoc = true; eoc = true;

Loading…
Cancel
Save