[or-cvs] [tor/master] Fix a memory leak on directory authorities during voting

arma at seul.org arma at seul.org
Thu Nov 12 06:36:03 UTC 2009


Author: Roger Dingledine <arma at torproject.org>
Date: Thu, 12 Nov 2009 01:31:26 -0500
Subject: Fix a memory leak on directory authorities during voting
Commit: 22f674fcb88411d8b56a3423fb0c09bb7745529c

Fix a memory leak on directory authorities during voting that was
introduced in 0.2.2.1-alpha. Found via valgrind.
---
 ChangeLog        |    2 ++
 src/or/dirvote.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3edcbae..dd05eb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,8 @@ Changes in version 0.2.2.6-alpha - 2009-10-??
       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
     - Bridges do not use the default exit policy, but reject *:* by
       default. Fixes bug 1113.
+    - Fix a memory leak on directory authorities during voting that was
+      introduced in 0.2.2.1-alpha. Found via valgrind.
 
 
 Changes in version 0.2.2.5-alpha - 2009-10-11
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 65d7c47..5de5da1 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -1305,6 +1305,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
     smartlist_free(versions);
     smartlist_free(exitsummaries);
     tor_free(bandwidths);
+    tor_free(measured_bws);
   }
 
   /* Add a signature. */
-- 
1.5.6.5



More information about the tor-commits mailing list