Call dns_lib_destroy in bin/named/main.c:printversion

There were unbalanced calls to dns_lib_init and dns_lib_destroy
leading to an OpenSSL memory leak.

(cherry picked from commit 8b3c018f54)
This commit is contained in:
Mark Andrews 2023-01-30 09:49:58 +11:00
parent 198615faad
commit 4263afa31d

View file

@ -643,6 +643,7 @@ printversion(bool verbose) {
isc_buffer_init(&b, buf, sizeof(buf));
format_supported_algorithms(printit);
printf("\n");
dst_lib_destroy();
} else {
printf("DST initialization failure: %s\n",
isc_result_totext(result));