diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-09-22 13:17:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-09-23 11:32:22 -0400 |
commit | 939d12be580c6696638918b9cc04e3210e3e4845 (patch) | |
tree | 6d389f0c0b0ad91ca2303af8357633bf61ba7480 /src/feature/dirauth/dirvote.c | |
parent | 43672f9fcaf78cbb49abe4b258b95648a609b4cf (diff) | |
download | tor-939d12be580c6696638918b9cc04e3210e3e4845.tar.gz tor-939d12be580c6696638918b9cc04e3210e3e4845.zip |
Fix memory leaks.
Diffstat (limited to 'src/feature/dirauth/dirvote.c')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index c1ffa25672..a60112a1c6 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -4361,8 +4361,8 @@ get_all_possible_sybil(const smartlist_t *routers) smartlist_t *routers_ipv6, *routers_ipv4; routers_ipv6 = smartlist_new(); routers_ipv4 = smartlist_new(); - digestmap_t *omit_as_sybil_ipv4 = digestmap_new(); - digestmap_t *omit_as_sybil_ipv6 = digestmap_new(); + digestmap_t *omit_as_sybil_ipv4; + digestmap_t *omit_as_sybil_ipv6; digestmap_t *omit_as_sybil = digestmap_new(); // Sort the routers in two lists depending on their IP version SMARTLIST_FOREACH(routers, routerinfo_t *, ri, { |