diff options
author | David Goulet <dgoulet@torproject.org> | 2016-12-09 12:59:38 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-12-09 12:59:40 -0500 |
commit | f3c040e33e8d12c62794db48c33799b43a86864a (patch) | |
tree | 492e2be9aa6df5540ae02f1dce8aae2148e45409 | |
parent | adaf6a422af84a7402c2199d2c9be89a7e3f9e02 (diff) | |
download | tor-f3c040e33e8d12c62794db48c33799b43a86864a.tar.gz tor-f3c040e33e8d12c62794db48c33799b43a86864a.zip |
test: fix memory leak in single onion poisoning
Closes #20938
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r-- | src/test/test_hs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c index 690e07e6f4..8237bbc50e 100644 --- a/src/test/test_hs.c +++ b/src/test/test_hs.c @@ -570,8 +570,8 @@ test_single_onion_poisoning(void *arg) tt_assert(ret == 0); } - service_1->directory = tor_strdup(dir1); - service_2->directory = tor_strdup(dir2); + service_1->directory = dir1; + service_2->directory = dir2; /* The services own the directory pointers now */ dir1 = dir2 = NULL; /* Add port to service 1 */ |