aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index c7beec77b7..2ca5199f3c 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2758,6 +2758,8 @@ frac_nodes_with_descriptors(const smartlist_t *sl,
if (node_has_descriptor(node))
n_with_descs++;
});
+
+ tor_free(bandwidths);
return ((double)n_with_descs) / (double)smartlist_len(sl);
}