]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix memory leak on bad ns convote. CID 1301371.
authorNick Mathewson <nickm@torproject.org>
Thu, 28 May 2015 16:49:39 +0000 (12:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 28 May 2015 16:49:39 +0000 (12:49 -0400)
src/or/routerparse.c

index c3dc2415735435392dcfbe46e8725f8992d322a2..1835bf8194f4bd48e5e42fa751fefac84ba980e2 100644 (file)
@@ -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);