From a42adce3628c9b82c91ff21e85c6a2d4fbcefc13 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 16 Oct 2004 20:38:57 +0000 Subject: fix memory leak in router.c; start relying on NULL==(zero bytes) svn:r2538 --- src/or/dns.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/or/dns.c') diff --git a/src/or/dns.c b/src/or/dns.c index c4d4a363a..56f737898 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -243,7 +243,6 @@ int dns_resolve(connection_t *exitconn) { /* add us to the pending list */ pending_connection = tor_malloc_zero(sizeof(struct pending_connection_t)); pending_connection->conn = exitconn; - pending_connection->next = NULL; resolve->pending_connections = pending_connection; exitconn->state = EXIT_CONN_STATE_RESOLVING; -- cgit v1.2.3