mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
test: Fix coverity CID 1439130
Trivial fix of removing an uneeded NULL check in an HS v3 unit test. Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
@@ -563,9 +563,7 @@ test_load_keys_with_client_auth(void *arg)
|
||||
} SMARTLIST_FOREACH_END(pubkey_b32);
|
||||
|
||||
done:
|
||||
if (pubkey_b32_list) {
|
||||
SMARTLIST_FOREACH(pubkey_b32_list, char *, s, tor_free(s));
|
||||
}
|
||||
SMARTLIST_FOREACH(pubkey_b32_list, char *, s, tor_free(s));
|
||||
smartlist_free(pubkey_b32_list);
|
||||
tor_free(hsdir_v3);
|
||||
hs_free_all();
|
||||
|
||||
Reference in New Issue
Block a user