aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-25 14:31:13 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-25 14:31:13 +0000
commit53e62339857eaa650df769ad3ad7cc2527b296ca (patch)
tree336acc4032a9f2d85d1fc76da2880432d9ae5fb6
parente54a44eb82e7ecea6c4d18de1fef3cc39b7644e5 (diff)
downloadtor-53e62339857eaa650df769ad3ad7cc2527b296ca.tar
tor-53e62339857eaa650df769ad3ad7cc2527b296ca.tar.gz
r16153@catbus: nickm | 2007-10-25 10:21:42 -0400
do not set authority cert bodies twice: fixes memory leak bug 536. svn:r12187
-rw-r--r--ChangeLog2
-rw-r--r--src/or/routerlist.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6410fc031..5de8e7de3 100644
--- 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
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index e86e2d51f..d12e26f0b 100644
--- a/src/or/routerlist.c
+++ b/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)