Commit 8f8a27d6 authored by moti's avatar moti Committed by Wouter van Oortmerssen

[C++] Add grpc_slice_unref(slice) (#4294)

parent 86777bd6
......@@ -37,6 +37,7 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
auto slice = gpr_slice_from_copied_buffer(
reinterpret_cast<const char *>(msg.buf), msg.len);
*buffer = grpc_raw_byte_buffer_create(&slice, 1);
grpc_slice_unref(slice);
*own_buffer = true;
return grpc::Status();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment