gRPC: fix memory leak (#4351)
SerializationTraits<T>::Deserialize _transfers_ ownership of the buffer, so we must destroy it. This commit also includes some misc fixes: - Use grpc::Status::OK rather than default ctor for clarity. - Check for a null buffer passed into Deserialize, and handle it the same way as the protobuf deserializer.
Showing
Please
register
or
sign in
to comment