From: David Goulet Date: Fri, 9 Dec 2016 17:59:38 +0000 (-0500) Subject: test: fix memory leak in single onion poisoning X-Git-Tag: tor-0.2.9.7-rc~6^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3c040e33e8d12c62794db48c33799b43a86864a;p=thirdparty%2Ftor.git test: fix memory leak in single onion poisoning Closes #20938 Signed-off-by: David Goulet --- 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 */