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