]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r16153@catbus: nickm | 2007-10-25 10:21:42 -0400
authorNick Mathewson <nickm@torproject.org>
Thu, 25 Oct 2007 14:31:13 +0000 (14:31 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Oct 2007 14:31:13 +0000 (14:31 +0000)
 do not set authority cert bodies twice: fixes memory leak bug 536.

svn:r12187

ChangeLog
src/or/routerlist.c

index 6410fc0315db9a40d106e965090b4217690621fa..5de8e7de31941180409211ae90a3b438f248114c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@ Changes in version 0.2.0.10-alpha - 2007-1?-??
       on 0.2.0.x.
     - Stop leaking memory every time we parse a v3 certificate. Bugfix
       on 0.2.0.1-alpha.
+    - Stop leaking memory every time we load a v3 certificate. Bugfix
+      on 0.2.0.1-alpha.  Fixes Bug 536.
 
 
 Changes in version 0.2.0.9-alpha - 2007-10-24
index e86e2d51f580f004e5954e22855520401eaad354..d12e26f0bce4884260cce06f4c7db728945c67fe 100644 (file)
@@ -140,8 +140,6 @@ trusted_dirs_load_certs_from_string(const char *contents, int from_store)
     if (found)
       continue;
 
-    cert->cache_info.signed_descriptor_body = tor_strndup(s, eos-s);
-    cert->cache_info.signed_descriptor_len = eos-s;
     smartlist_add(ds->v3_certs, cert);
 
     if (!from_store)