Explorar o código

a log entry to help us find mike's memory leak

svn:r12469
Roger Dingledine %!s(int64=18) %!d(string=hai) anos
pai
achega
2b2d111017
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/or/dns.c

+ 2 - 0
src/or/dns.c

@@ -707,6 +707,8 @@ dns_resolve_impl(edge_connection_t *exitconn, int is_resolve,
         tor_fragile_assert();
     }
     tor_assert(0);
+  } else if (resolve) {
+    log_warn(LD_BUG, "Found Mike's bug. Memory leak here!");
   }
   /* not there, need to add it */
   resolve = tor_malloc_zero(sizeof(cached_resolve_t));