[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [tor/master] Fix a memory leak when v3 directory authorities load their keys and cert from disk. Bugfix on 0.2.0.1-alpha.



Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
Date: Sun, 17 May 2009 01:22:29 -0400
Subject: Fix a memory leak when v3 directory authorities load their keys
Commit: 2fa54102188b70b9899035250a9f7c26b843fc91

---
 ChangeLog       |    2 ++
 src/or/router.c |    3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b84da4c..21569d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,8 @@ Changes in version 0.2.1.15??? - ????-??-??
       unhappy.  Bugfix on 0.2.0.x.
     - Fix use of freed memory when deciding to mark a non-addable
       descriptor as never-downloadable.  Bugfix on 0.2.1.9-alpha.
+    - Fix a memory leak when v3 directory authorities load their keys
+      and cert from disk. Bugfix on 0.2.0.1-alpha.
 
 
 Changes in version 0.2.1.14-rc - 2009-04-12
diff --git a/src/or/router.c b/src/or/router.c
index 45ea18b..da922b7 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -330,9 +330,6 @@ load_authority_keyset(int legacy, crypto_pk_env_t **key_out,
              "certificate");
     goto done;
   }
-  parsed->cache_info.signed_descriptor_body = cert;
-  parsed->cache_info.signed_descriptor_len = eos-cert;
-  cert = NULL;
 
   if (*key_out)
     crypto_free_pk_env(*key_out);
-- 
1.5.6.5