mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Use dir_conn_clear_spool() in connection.c.
This is cleaner than iterating over the spool.
This commit is contained in:
parent
fe8156dbc2
commit
6e12a8f047
1 changed files with 1 additions and 5 deletions
|
@ -719,11 +719,7 @@ connection_free_minimal(connection_t *conn)
|
|||
tor_free(dir_conn->requested_resource);
|
||||
|
||||
tor_compress_free(dir_conn->compress_state);
|
||||
if (dir_conn->spool) {
|
||||
SMARTLIST_FOREACH(dir_conn->spool, spooled_resource_t *, spooled,
|
||||
spooled_resource_free(spooled));
|
||||
smartlist_free(dir_conn->spool);
|
||||
}
|
||||
dir_conn_clear_spool(dir_conn);
|
||||
|
||||
rend_data_free(dir_conn->rend_data);
|
||||
hs_ident_dir_conn_free(dir_conn->hs_ident);
|
||||
|
|
Loading…
Add table
Reference in a new issue