mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix a memory leak in authority_certs_fetch_missing() every time
we try to call it but don't have enough dir info. svn:r12743
This commit is contained in:
+5
-2
@@ -311,13 +311,16 @@ authority_cert_get_by_digests(const char *id_digest,
|
||||
void
|
||||
authority_certs_fetch_missing(networkstatus_vote_t *status, time_t now)
|
||||
{
|
||||
digestmap_t *pending = digestmap_new();
|
||||
smartlist_t *missing_digests = smartlist_create();
|
||||
digestmap_t *pending;
|
||||
smartlist_t *missing_digests;
|
||||
char *resource = NULL;
|
||||
|
||||
if (should_delay_dir_fetches(get_options()))
|
||||
return;
|
||||
|
||||
pending = digestmap_new();
|
||||
missing_digests = smartlist_create();
|
||||
|
||||
list_pending_downloads(pending, DIR_PURPOSE_FETCH_CERTIFICATE, "fp/");
|
||||
if (status) {
|
||||
SMARTLIST_FOREACH(status->voters, networkstatus_voter_info_t *, voter,
|
||||
|
||||
Reference in New Issue
Block a user