Skip to content
Snippets Groups Projects
Commit a2517a15 authored by Vijay Pai's avatar Vijay Pai
Browse files

Merge pull request #4725 from yang-g/destroy_reader

destroy reader after using it
parents cd068333 f8057350
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ void ByteBuffer::Dump(std::vector<Slice>* slices) const {
while (grpc_byte_buffer_reader_next(&reader, &s)) {
slices->push_back(Slice(s, Slice::STEAL_REF));
}
grpc_byte_buffer_reader_destroy(&reader);
}
size_t ByteBuffer::Length() const {
......@@ -88,4 +89,4 @@ ByteBuffer& ByteBuffer::operator=(const ByteBuffer& buf) {
return *this;
}
} // namespace grpc
\ No newline at end of file
} // namespace grpc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment