]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leaks that stopped chutney working with asan
authorNick Mathewson <nickm@torproject.org>
Mon, 28 Mar 2016 14:24:28 +0000 (10:24 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 28 Mar 2016 14:24:28 +0000 (10:24 -0400)
ChangeLog
src/or/main.c

index 3e83610de6a8a14ff4146b948ff6f7dbcf538ca0..b4cb45584ee2d7d64ee7802e31f2545e11e0f918 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -255,6 +255,10 @@ Changes in version 0.2.8.2-alpha - 2016-03-28
     - Correctly duplicate addresses in get_interface_address6_list.
       Fixes bug 18454; bugfix on 110765f5 in tor-0.2.8.1-alpha. Reported
       by "toralf", patch by "cypherpunks".
+    - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix on
+      0.2.0.1-alpha.
+    - Fix a memory leak in "tor --list-figngerprint". Fixes part of bug
+      18672; bugfix on 0.2.0.1-alpha.
 
   o Minor bugfixes (private directory):
     - Prevent a race condition when creating private directories. Fixes
index 26e52d241d5bc19b8fa85b97bfa2d7cdeaa72f5c..a2cf5b110173c80f8fbe9c3144e18ba8003f33df 100644 (file)
@@ -3245,6 +3245,7 @@ do_list_fingerprint(void)
   char buf[FINGERPRINT_LEN+1];
   crypto_pk_t *k;
   const char *nickname = get_options()->Nickname;
+  sandbox_disable_getaddrinfo_cache();
   if (!server_mode(get_options())) {
     log_err(LD_GENERAL,
             "Clients don't have long-term identity keys. Exiting.");