Browse Source

Fix a memory leak on directory authorities during voting

Fix a memory leak on directory authorities during voting that was
introduced in 0.2.2.1-alpha. Found via valgrind.
Roger Dingledine 15 years ago
parent
commit
22f674fcb8
2 changed files with 3 additions and 0 deletions
  1. 2 0
      ChangeLog
  2. 1 0
      src/or/dirvote.c

+ 2 - 0
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

+ 1 - 0
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. */