diff options
author | Craig Tiller <ctiller@google.com> | 2015-02-05 16:03:13 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-05 16:03:13 -0800 |
commit | fee91b49ffd37836940a94df453408f149a7b81e (patch) | |
tree | b0ec9260ce40e2fd43fba5486e77fce56ad007a4 /src/core | |
parent | aa2ac59b5c60d52063c485966bdfc28b35c3a326 (diff) |
Converted some cancellation tests
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/surface/byte_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/surface/byte_buffer.c b/src/core/surface/byte_buffer.c index d1be41074d..09e2aa5b87 100644 --- a/src/core/surface/byte_buffer.c +++ b/src/core/surface/byte_buffer.c @@ -61,6 +61,7 @@ grpc_byte_buffer *grpc_byte_buffer_copy(grpc_byte_buffer *bb) { } void grpc_byte_buffer_destroy(grpc_byte_buffer *bb) { + if (!bb) return; switch (bb->type) { case GRPC_BB_SLICE_BUFFER: gpr_slice_buffer_destroy(&bb->data.slice_buffer); |