diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-05-28 12:49:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-28 12:49:39 -0400 |
commit | b76815d1107dafd9e1221a04a40033eaae242eb9 (patch) | |
tree | 6addd9afc5a564a29b08e7d36a68b9c1faafbf61 | |
parent | a85d58af62b04f37e16e2840e77e7f158a9586fc (diff) | |
download | tor-b76815d1107dafd9e1221a04a40033eaae242eb9.tar.gz tor-b76815d1107dafd9e1221a04a40033eaae242eb9.zip |
fix memory leak on bad ns convote. CID 1301371.
-rw-r--r-- | src/or/routerparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index c3dc241573..1835bf8194 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -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) { log_warn(LD_DIR, "Vote networkstatus ed25519 identities were not " "unique"); + digest256map_free(ed_id_map, NULL); goto err; } digest256map_set(ed_id_map, vrs->ed25519_id, (void*)1); |