Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
228ac47c
Commit
228ac47c
authored
Sep 23, 2020
by
Nick Mathewson
🐻
Browse files
Fix memory leak in vote generation
parent
2b39543d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/feature/dirauth/dirvote.c
View file @
228ac47c
...
...
@@ -4566,7 +4566,6 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
time_t
cutoff
=
now
-
ROUTER_MAX_AGE_TO_PUBLISH
;
networkstatus_voter_info_t
*
voter
=
NULL
;
vote_timing_t
timing
;
digestmap_t
*
omit_as_sybil
=
digestmap_new
();
const
int
vote_on_reachability
=
running_long_enough_to_decide_unreachable
();
smartlist_t
*
microdescriptors
=
NULL
;
smartlist_t
*
bw_file_headers
=
NULL
;
...
...
@@ -4637,7 +4636,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
/* After this point, don't use rl->routers; use 'routers' instead. */
routers_sort_by_identity
(
routers
);
/* Get a digestmap of possible sybil routers, IPv4 or IPv6 */
omit_as_sybil
=
get_all_possible_sybil
(
routers
);
digestmap_t
*
omit_as_sybil
=
get_all_possible_sybil
(
routers
);
DIGESTMAP_FOREACH
(
omit_as_sybil
,
sybil_id
,
void
*
,
ignore
)
{
(
void
)
ignore
;
rep_hist_make_router_pessimal
(
sybil_id
,
now
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment