diff options
-rw-r--r-- | src/or/hs_circuitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_circuitmap.c b/src/or/hs_circuitmap.c index 790c4d3b84..321c8dd1c6 100644 --- a/src/or/hs_circuitmap.c +++ b/src/or/hs_circuitmap.c @@ -320,9 +320,9 @@ hs_circuitmap_init(void) void hs_circuitmap_free_all(void) { - tor_assert(the_hs_circuitmap); - - HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap); - tor_free(the_hs_circuitmap); + if (the_hs_circuitmap) { + HT_CLEAR(hs_circuitmap_ht, the_hs_circuitmap); + tor_free(the_hs_circuitmap); + } } |