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:
Roger Dingledine 2005-12-14 00:52:15 +00:00
parent d853c9a009
commit c9f6e6b0a0

View File

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