aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-04-22 14:47:05 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-04-22 14:47:05 -0700
commitd78ca88da1cc7989426d8cdb902c056fae2ba549 (patch)
tree29db5ba40e204756352f277e3f31be4f5880122d /test/core/end2end
parent3ec4b83f7a6e8489c786ad5d2bcf99eb61c11736 (diff)
Fix bugs in test infra
Diffstat (limited to 'test/core/end2end')
-rw-r--r--test/core/end2end/fuzzers/api_fuzzer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/end2end/fuzzers/api_fuzzer.c b/test/core/end2end/fuzzers/api_fuzzer.c
index b750780a95..c1c5966801 100644
--- a/test/core/end2end/fuzzers/api_fuzzer.c
+++ b/test/core/end2end/fuzzers/api_fuzzer.c
@@ -138,7 +138,9 @@ static uint32_t read_uint32(input_stream *inp) {
static grpc_byte_buffer *read_message(input_stream *inp) {
gpr_slice slice = gpr_slice_malloc(read_uint22(inp));
memset(GPR_SLICE_START_PTR(slice), 0, GPR_SLICE_LENGTH(slice));
- return grpc_raw_byte_buffer_create(&slice, 1);
+ grpc_byte_buffer *out = grpc_raw_byte_buffer_create(&slice, 1);
+ gpr_slice_unref(slice);
+ return out;
}
static void read_metadata(input_stream *inp, size_t *count,