mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r19079@catbus: nickm | 2008-03-26 17:16:46 -0400
Free authority certs on exit. Backport candidate. svn:r14205
This commit is contained in:
@@ -2628,6 +2628,16 @@ routerlist_free_all(void)
|
||||
smartlist_free(trusted_dir_servers);
|
||||
trusted_dir_servers = NULL;
|
||||
}
|
||||
if (trusted_dir_certs) {
|
||||
DIGESTMAP_FOREACH(trusted_dir_certs, key, cert_list_t *, cl) {
|
||||
SMARTLIST_FOREACH(cl->certs, authority_cert_t *, cert,
|
||||
authority_cert_free(cert));
|
||||
smartlist_free(cl->certs);
|
||||
tor_free(cl);
|
||||
} DIGESTMAP_FOREACH_END;
|
||||
digestmap_free(trusted_dir_certs, NULL);
|
||||
trusted_dir_certs = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/** Forget that we have issued any router-related warnings, so that we'll
|
||||
|
||||
Reference in New Issue
Block a user