mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
sometimes, when we just started tor, we haven't created that
smartlist yet. so don't free it. svn:r5577
This commit is contained in:
parent
d853c9a009
commit
c9f6e6b0a0
@ -326,8 +326,10 @@ circuit_free_all(void)
|
||||
circuit_free(global_circuitlist);
|
||||
global_circuitlist = next;
|
||||
}
|
||||
smartlist_free(circuits_pending_or_conns);
|
||||
circuits_pending_or_conns = NULL;
|
||||
if (circuits_pending_or_conns) {
|
||||
smartlist_free(circuits_pending_or_conns);
|
||||
circuits_pending_or_conns = NULL;
|
||||
}
|
||||
HT_CLEAR(orconn_circid_map, &orconn_circid_circuit_map);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user