diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-22 11:13:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-22 11:13:01 -0500 |
commit | 13f26f41e469ae2fa5d2249c532f7f515195a2a0 (patch) | |
tree | c59de8f13db8b2268cc2d1daad86b57ecd2926d6 /src/test/test_microdesc.c | |
parent | ec07c3c5c5c4afe19816b1d5363d9b9acd4c484c (diff) | |
download | tor-13f26f41e469ae2fa5d2249c532f7f515195a2a0.tar.gz tor-13f26f41e469ae2fa5d2249c532f7f515195a2a0.zip |
Fix some coverity issues in the unit tests
Diffstat (limited to 'src/test/test_microdesc.c')
-rw-r--r-- | src/test/test_microdesc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_microdesc.c b/src/test/test_microdesc.c index 4a7c29b747..31ed93b720 100644 --- a/src/test/test_microdesc.c +++ b/src/test/test_microdesc.c @@ -703,8 +703,7 @@ test_md_reject_cache(void *arg) done: UNMOCK(networkstatus_get_latest_consensus_by_flavor); UNMOCK(router_get_mutable_consensus_status_by_descriptor_digest); - if (options) - tor_free(options->DataDirectory); + tor_free(options->DataDirectory); microdesc_free_all(); smartlist_free(added); SMARTLIST_FOREACH(wanted, char *, cp, tor_free(cp)); |