diff options
author | Adele Zhou <adelez@google.com> | 2018-04-10 14:20:00 -0700 |
---|---|---|
committer | Adele Zhou <adelez@google.com> | 2018-04-10 17:07:33 -0700 |
commit | 3f322e1088911a24a2ac1c7728028a83a5a8f470 (patch) | |
tree | fe5897673ad431b6bb6683740fcf9e1542cecbc7 /test/cpp/util | |
parent | 07490921838db5bea3334a03e7d08d59b20d707f (diff) |
Fix a memory leak
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/grpc_tool_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/util/grpc_tool_test.cc b/test/cpp/util/grpc_tool_test.cc index 9f7fec5e93..6574d1bb44 100644 --- a/test/cpp/util/grpc_tool_test.cc +++ b/test/cpp/util/grpc_tool_test.cc @@ -22,6 +22,7 @@ #include <gflags/gflags.h> #include <grpc/grpc.h> +#include <grpc/support/alloc.h> #include <grpcpp/channel.h> #include <grpcpp/client_context.h> #include <grpcpp/create_channel.h> @@ -738,6 +739,8 @@ TEST_F(GrpcToolTest, CallCommandWithBadMetadata) { FLAGS_metadata = ""; FLAGS_protofiles = ""; + + gpr_free(test_srcdir); } } // namespace testing |