[tor-commits] [tor/master] test: Fix memory leak in test_hs_common.c
nickm at torproject.org
nickm at torproject.org
Fri Aug 11 18:48:27 UTC 2017
commit 9df4261407d620d05901a5c4e93aa963f89ab185
Author: David Goulet <dgoulet at torproject.org>
Date: Fri Aug 11 14:46:27 2017 -0400
test: Fix memory leak in test_hs_common.c
Partially fixes #23223
Signed-off-by: David Goulet <dgoulet at torproject.org>
---
src/test/test_hs_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index fce71ef2d..2461e7cd6 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));
More information about the tor-commits
mailing list