diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 7bbd4fafd2..1c58c4b88e 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3035,9 +3035,7 @@ failure_tls: } else { next = NULL; } - if (connectquery != NULL) { - query_detach(&connectquery); - } + query_detach(&connectquery); query_detach(&query); if (next == NULL) { clear_current_lookup();