diff options
author | Mark D. Roth <roth@google.com> | 2017-04-20 07:05:34 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-04-20 07:05:34 -0700 |
commit | f186d9d35b93bed6cb47e2902eb3caf4d43be55e (patch) | |
tree | c7bba40993f7f34348e1896ff196a5afbb763281 | |
parent | ba390352c9d232d5e03e5821c06aecd2fd1f98d2 (diff) |
Fix asan bug.
-rw-r--r-- | test/core/slice/slice_hash_table_test.c | 2 |
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); } } |