summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-11 14:46:27 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-11 14:46:27 -0400
commit9df4261407d620d05901a5c4e93aa963f89ab185 (patch)
tree76e2921a715c75077e131cf6e52a2b54f245d363
parent60c7da71ab3435e2022dd4f62ac67c09da94db89 (diff)
downloadtor-9df4261407d620d05901a5c4e93aa963f89ab185.tar.gz
tor-9df4261407d620d05901a5c4e93aa963f89ab185.zip
test: Fix memory leak in test_hs_common.c
Partially fixes #23223 Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r--src/test/test_hs_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index fce71ef2dd..2461e7cd6e 100644
--- a/src/test/test_hs_common.c
+++ b/src/test/test_hs_common.c
@@ -409,7 +409,7 @@ test_responsible_hsdirs(void *arg)
memset(&ri, 0 ,sizeof(routerinfo_t));
tor_addr_parse(&ipv4_addr, "127.0.0.1");
ri.addr = tor_addr_to_ipv4h(&ipv4_addr);
- ri.nickname = tor_strdup("fatal");
+ ri.nickname = (char *) "fatal";
ri.protocol_list = (char *) "HSDir=1-2 LinkAuth=3";
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
tt_assert(nodelist_set_routerinfo(&ri, NULL));