[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] fix memory leak on bad ns convote. CID 1301371.



commit b76815d1107dafd9e1221a04a40033eaae242eb9
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu May 28 12:49:39 2015 -0400

    fix memory leak on bad ns convote. CID 1301371.
---
 src/or/routerparse.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index c3dc241..1835bf8 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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits