diff --git a/include/flatbuffers/grpc.h b/include/flatbuffers/grpc.h index 3263f2e6c..809f1032f 100644 --- a/include/flatbuffers/grpc.h +++ b/include/flatbuffers/grpc.h @@ -47,6 +47,7 @@ class Message { Message(const Message &other) = delete; Message &operator=(Message &&other) { + grpc_slice_unref(slice_); slice_ = other.slice_; other.slice_ = grpc_empty_slice(); return *this;