Fix a "make check" regression in --list-fingerprint.

This commit is contained in:
Nick Mathewson 2016-12-14 15:39:31 -05:00
parent c838d34921
commit a675ef8eea

View File

@ -320,9 +320,9 @@ hs_circuitmap_init(void)
void void
hs_circuitmap_free_all(void) hs_circuitmap_free_all(void)
{ {
tor_assert(the_hs_circuitmap); if (the_hs_circuitmap) {
HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap); HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap);
tor_free(the_hs_circuitmap); tor_free(the_hs_circuitmap);
}
} }