[tor-commits] [tor/master] Free rsa_ed_crosscert at exit.

nickm at torproject.org nickm at torproject.org
Thu Nov 3 13:18:59 UTC 2016


commit e94f1b4e0d4b31ed80e2eefb8700f2671817f561
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Aug 30 11:10:03 2016 -0400

    Free rsa_ed_crosscert at exit.
    
    Fixes bug 17779; bugfix on 0.2.7.2-alpha.
---
 changes/bug17779    | 6 ++++++
 src/or/routerkeys.c | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/changes/bug17779 b/changes/bug17779
new file mode 100644
index 0000000..0ed2d12
--- /dev/null
+++ b/changes/bug17779
@@ -0,0 +1,6 @@
+  o Minor bugfixes (leak at exit):
+    - Fix a small harmless memory leak at exit of the previously unused
+      RSA->Ed identity cross-certificate. Fixes 17779; bugfix on
+      0.2.7.2-alpha.
+
+
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 060ffd8..6d3ad40 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -1139,9 +1139,12 @@ routerkeys_free_all(void)
   tor_cert_free(signing_key_cert);
   tor_cert_free(link_cert_cert);
   tor_cert_free(auth_key_cert);
+  tor_free(rsa_ed_crosscert);
 
   master_identity_key = master_signing_key = NULL;
   current_auth_key = NULL;
   signing_key_cert = link_cert_cert = auth_key_cert = NULL;
+  rsa_ed_crosscert = NULL; // redundant
+  rsa_ed_crosscert_len = 0;
 }
 





More information about the tor-commits mailing list