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