mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
fix memory leak on bad ns convote. CID 1301371.
This commit is contained in:
parent
a85d58af62
commit
b76815d110
@ -3191,6 +3191,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
|
|||||||
if (digest256map_get(ed_id_map, vrs->ed25519_id) != NULL) {
|
if (digest256map_get(ed_id_map, vrs->ed25519_id) != NULL) {
|
||||||
log_warn(LD_DIR, "Vote networkstatus ed25519 identities were not "
|
log_warn(LD_DIR, "Vote networkstatus ed25519 identities were not "
|
||||||
"unique");
|
"unique");
|
||||||
|
digest256map_free(ed_id_map, NULL);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
digest256map_set(ed_id_map, vrs->ed25519_id, (void*)1);
|
digest256map_set(ed_id_map, vrs->ed25519_id, (void*)1);
|
||||||
|
Loading…
Reference in New Issue
Block a user