Merge pull request #4725 from yang-g/destroy_reader

destroy reader after using it
pull/4726/head
Vijay Pai 9 years ago
commit a2517a1573
  1. 1
      src/cpp/util/byte_buffer.cc

@ -69,6 +69,7 @@ void ByteBuffer::Dump(std::vector<Slice>* slices) const {
while (grpc_byte_buffer_reader_next(&reader, &s)) { while (grpc_byte_buffer_reader_next(&reader, &s)) {
slices->push_back(Slice(s, Slice::STEAL_REF)); slices->push_back(Slice(s, Slice::STEAL_REF));
} }
grpc_byte_buffer_reader_destroy(&reader);
} }
size_t ByteBuffer::Length() const { size_t ByteBuffer::Length() const {

Loading…
Cancel
Save