Browse Source

r16153@catbus: nickm | 2007-10-25 10:21:42 -0400
do not set authority cert bodies twice: fixes memory leak bug 536.


svn:r12187

Nick Mathewson 18 years ago
parent
commit
53e6233985
2 changed files with 2 additions and 2 deletions
  1. 2 0
      ChangeLog
  2. 0 2
      src/or/routerlist.c

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

+ 0 - 2
src/or/routerlist.c

@@ -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)