From 2ebcafd8c2ce8ceeb2452ff4ce1b7b2a20f2afb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 5 Aug 2024 15:55:53 +0200 Subject: [PATCH] Move matching isc_mem_destroy() outside of ifdef The isc_mem_create() in printversion() was created outside of an #ifdef HAVE_GEOIP, but destroyed inside the #ifdef; move it to the outside of the #ifdef where it belongs. This is really a nit as we immediately exit() after printing the versions, but I found it and it would bug me for the rest of my life. --- bin/named/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/named/main.c b/bin/named/main.c index 2bb5c1292d..735b361ac5 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -674,8 +674,8 @@ printversion(bool verbose) { } cfg_obj_destroy(parser, &config); cfg_parser_destroy(&parser); - isc_mem_detach(&mctx); #endif /* HAVE_GEOIP2 */ + isc_mem_detach(&mctx); } static void