From 0a81eb646346b663d3d6b97d9219191ad92979d3 Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Mon, 12 Jun 2017 11:23:55 -0700 Subject: [PATCH] Fix memory leak in Message move operator (#4344) --- include/flatbuffers/grpc.h | 1 + 1 file changed, 1 insertion(+) 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;