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:
David Goulet 2018-09-10 10:22:31 -04:00
parent 58d74ad943
commit 064d3e7497

View file

@ -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();