[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r12187: do not set authority cert bodies twice: fixes memory leak bu (in tor/trunk: . src/or)
Author: nickm
Date: 2007-10-25 10:31:13 -0400 (Thu, 25 Oct 2007)
New Revision: 12187
Modified:
tor/trunk/
tor/trunk/ChangeLog
tor/trunk/src/or/routerlist.c
Log:
r16153@catbus: nickm | 2007-10-25 10:21:42 -0400
do not set authority cert bodies twice: fixes memory leak bug 536.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r16153] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2007-10-25 13:54:37 UTC (rev 12186)
+++ tor/trunk/ChangeLog 2007-10-25 14:31:13 UTC (rev 12187)
@@ -4,6 +4,8 @@
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
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2007-10-25 13:54:37 UTC (rev 12186)
+++ tor/trunk/src/or/routerlist.c 2007-10-25 14:31:13 UTC (rev 12187)
@@ -140,8 +140,6 @@
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)