]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a memory leak
authorSebastian Hahn <sebastian@torproject.org>
Sun, 15 Aug 2010 16:24:23 +0000 (18:24 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Sun, 15 Aug 2010 22:46:42 +0000 (00:46 +0200)
It happened in dirvote_add_signatures_to_pending_consesus().

changes/bug1831
src/or/dirvote.c

index 40b3fcf52c5c7a2ad67f2b152b2f0fad4d020780..6c504dadbcfc0ded132e45a3fa4f5d3cbda9cd3e 100644 (file)
@@ -1,3 +1,5 @@
   o Minor bugfixes
     - Fix a memory leak in the error case of circuit_build_times_parse_state().
       Bugfix on 0.2.2.14-alpha; fixes bug 1831 partially.
+    - Fix a memory leak in dirvote_add_signatures_to_pending_consensus(). 
+      Bugfix on 0.2.2.6-alpha; fixes bug 1831 partially.
index fd4d742ccb6563862f7f46197cd20a6553e95bfe..0042934c4ad63650c6ae2346b525d8a68dbfedbc 100644 (file)
@@ -3008,6 +3008,7 @@ dirvote_add_signatures_to_pending_consensus(
       networkstatus_vote_free(v);
     }
     *msg_out = "Signatures added";
+    tor_free(new_signatures);
   } else if (r == 0) {
     *msg_out = "Signatures ignored";
   } else {