mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
test: fix memory leak in single onion poisoning
Closes #20938 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
adaf6a422a
commit
f3c040e33e
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue