aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2017-04-20 07:05:34 -0700
committerGravatar Mark D. Roth <roth@google.com>2017-04-20 07:05:34 -0700
commitf186d9d35b93bed6cb47e2902eb3caf4d43be55e (patch)
treec7bba40993f7f34348e1896ff196a5afbb763281 /test/core/slice
parentba390352c9d232d5e03e5821c06aecd2fd1f98d2 (diff)
Fix asan bug.
Diffstat (limited to 'test/core/slice')
-rw-r--r--test/core/slice/slice_hash_table_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/slice/slice_hash_table_test.c b/test/core/slice/slice_hash_table_test.c
index 9eba57e70a..055d7f448f 100644
--- a/test/core/slice/slice_hash_table_test.c
+++ b/test/core/slice/slice_hash_table_test.c
@@ -50,7 +50,7 @@ typedef struct {
static void populate_entries(const test_entry* input, size_t num_entries,
grpc_slice_hash_table_entry* output) {
for (size_t i = 0; i < num_entries; ++i) {
- output[i].key = grpc_slice_from_copied_string(gpr_strdup(input[i].key));
+ output[i].key = grpc_slice_from_copied_string(input[i].key);
output[i].value = gpr_strdup(input[i].value);
}
}