diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-25 20:38:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-25 20:38:58 +0000 |
commit | 01f9e97d43014f9d404d9b09031bed814ac507a3 (patch) | |
tree | db85785b5cf8f31f58220907a39edf2a3c949b6c /src/or/dns.c | |
parent | 52e179b942f48383a76ae102133a66e939a64862 (diff) | |
download | tor-01f9e97d43014f9d404d9b09031bed814ac507a3.tar.gz tor-01f9e97d43014f9d404d9b09031bed814ac507a3.zip |
Minor fix: add code to eventdns so it can free memory on shutdown. This should help valgrind and dmalloc freak out less.
svn:r8503
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 343560a046..f38b6fff09 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1557,7 +1557,8 @@ evdns_callback(int result, char type, int count, int ttl, void *addresses, if (evdns_err_is_transient(result)) status = DNS_RESOLVE_FAILED_TRANSIENT; } - dns_found_answer(string_address, is_reverse, addr, hostname, status, ttl); + if (result != DNS_ERR_SHUTDOWN) + dns_found_answer(string_address, is_reverse, addr, hostname, status, ttl); tor_free(string_address); } |