diff options
author | teor <teor@torproject.org> | 2018-11-21 15:56:30 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2018-11-22 16:42:32 +1000 |
commit | ffc7b81b5dd909f0c4325e7a5b893504f76b9c77 (patch) | |
tree | 2143542146c2fdc461119b637a68b8cc4bc791d2 /src/test/test_entrynodes.c | |
parent | cbe04d455016233f4759fe281c07dd7db6096c2a (diff) | |
download | tor-ffc7b81b5dd909f0c4325e7a5b893504f76b9c77.tar.gz tor-ffc7b81b5dd909f0c4325e7a5b893504f76b9c77.zip |
Test: Fix memory leaks and missing unmocks in entry guard tests
test_entry_guard_outdated_dirserver_exclusion leaks memory, and is
missing some unmocks.
Fixes 28554; bugfix on 0.3.0.1-alpha.
Diffstat (limited to 'src/test/test_entrynodes.c')
-rw-r--r-- | src/test/test_entrynodes.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index 505e09e36f..3b54ffa2e9 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -2779,13 +2779,16 @@ test_entry_guard_outdated_dirserver_exclusion(void *arg) digests, 3, 7, 0); /* ... and check that because we failed to fetch microdescs from all our - * primaries, we didnt end up selecting a primary for fetching dir info */ + * primaries, we didn't end up selecting a primary for fetching dir info */ expect_log_msg_containing("No primary or confirmed guards available."); teardown_capture_of_logs(); } done: + UNMOCK(networkstatus_get_latest_consensus_by_flavor); + UNMOCK(directory_initiate_request); smartlist_free(digests); + tor_free(mock_ns_val); tor_free(args); if (conn) { tor_free(conn->requested_resource); |