aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-30 14:27:27 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-30 14:27:27 -0700
commite46f00a1d3740681ef92d0b4445165c3ada5bc5a (patch)
treedb5501e1c64325c907bb24977624e30a0966d4e1
parentf6d2f1fa1bf732b1dfbdb9c24870c02b5b1642dd (diff)
Fix leaked string in bad_client.c
-rw-r--r--test/core/bad_client/bad_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/bad_client/bad_client.c b/test/core/bad_client/bad_client.c
index e9adcf34c7..5b836fefc3 100644
--- a/test/core/bad_client/bad_client.c
+++ b/test/core/bad_client/bad_client.c
@@ -41,6 +41,7 @@
#include "src/core/support/string.h"
#include "src/core/transport/chttp2_transport.h"
+#include <grpc/support/alloc.h>
#include <grpc/support/sync.h>
#include <grpc/support/thd.h>
@@ -89,6 +90,8 @@ void grpc_run_bad_client_test(grpc_bad_client_server_side_validator validator,
/* Add a debug log */
gpr_log(GPR_INFO, "TEST: %s", hex);
+ gpr_free(hex);
+
/* Init grpc */
grpc_init();