diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:00:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:00:56 -0400 |
commit | df896ed6323f6f0493393f97e739501df8092e7f (patch) | |
tree | 70d642cf42f45be23fdc94e2c2139c3209a37d22 /src/or | |
parent | f8dad5a079ac356ef72f14cfddca2d81fd824102 (diff) | |
parent | fe2588a5a8560c8cb03345b3caaaf906655c34a1 (diff) | |
download | tor-df896ed6323f6f0493393f97e739501df8092e7f.tar.gz tor-df896ed6323f6f0493393f97e739501df8092e7f.zip |
Merge branch 'maint-0.3.2' into maint-0.3.3
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routerlist.c | 2 | ||||
-rw-r--r-- | src/or/shared_random_state.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 1bfbd9f670..203895c867 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2761,6 +2761,8 @@ 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) / (double)smartlist_len(sl); } diff --git a/src/or/shared_random_state.c b/src/or/shared_random_state.c index 53782af59a..7bac8e9482 100644 --- a/src/or/shared_random_state.c +++ b/src/or/shared_random_state.c @@ -449,6 +449,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 |