aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Adele Zhou <adelez@google.com>2018-04-10 14:20:00 -0700
committerGravatar Adele Zhou <adelez@google.com>2018-04-10 17:07:33 -0700
commit3f322e1088911a24a2ac1c7728028a83a5a8f470 (patch)
treefe5897673ad431b6bb6683740fcf9e1542cecbc7 /test/cpp/util
parent07490921838db5bea3334a03e7d08d59b20d707f (diff)
Fix a memory leak
Diffstat (limited to 'test/cpp/util')
-rw-r--r--test/cpp/util/grpc_tool_test.cc3
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