summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/dirauth/shared_random_state.c1
-rw-r--r--src/or/routerlist.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirauth/shared_random_state.c b/src/or/dirauth/shared_random_state.c
index 245fb99ce7..fc0e4e5630 100644
--- a/src/or/dirauth/shared_random_state.c
+++ b/src/or/dirauth/shared_random_state.c
@@ -373,6 +373,7 @@ disk_state_parse_commits(sr_state_t *state,
if (commit == NULL) {
/* Ignore badly formed commit. It could also be a authority
* fingerprint that we don't know about so it shouldn't be used. */
+ smartlist_free(args);
continue;
}
/* We consider parseable commit from our disk state to be valid because
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 8788dc0190..97d83213af 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2764,6 +2764,7 @@ frac_nodes_with_descriptors(const smartlist_t *sl,
if (node_has_any_descriptor(node))
n_with_descs++;
});
+ tor_free(bandwidths);
return ((double)n_with_descs) / smartlist_len(sl);
}
@@ -5819,4 +5820,3 @@ refresh_all_country_info(void)
nodelist_refresh_countries();
}
-