]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r16157@catbus: nickm | 2007-10-25 10:36:34 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 25 Oct 2007 14:37:49 +0000 (14:37 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Oct 2007 14:37:49 +0000 (14:37 +0000)
 Free v2_network_status_map on exit.

svn:r12189

ChangeLog
src/or/networkstatus.c

index cd6715604e7183228a56fea20bc9c206f35595a2..8a42653ad65b77cdce2ce5f34e6e15e0ec1c4325 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,8 @@ Changes in version 0.2.0.10-alpha - 2007-1?-??
       Bugfix on 0.2.0.3-alpha.
     - Stop leaking a signature every time we fail to parse a consensus or
       a vote.  Bugfix on 0.2.0.3-alpha.
+    - Stop leaking v2_download_status_map on shutdown.  Bugfix on
+      0.2.0.9-alpha.
 
 
 Changes in version 0.2.0.9-alpha - 2007-10-24
index b8500d448e9dbabe6149e9487fa6fa0761b5713c..539f128eaf3722203232ba19e0053b622cf6e913 100644 (file)
@@ -1657,6 +1657,10 @@ networkstatus_free_all(void)
     smartlist_free(networkstatus_v2_list);
     networkstatus_v2_list = NULL;
   }
+  if (v2_download_status_map) {
+    digestmap_free(v2_download_status_map, _tor_free);
+    v2_download_status_map = NULL;
+  }
   if (current_consensus) {
     networkstatus_vote_free(current_consensus);
     current_consensus = NULL;