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.
This commit is contained in:
Mark Andrews 2023-01-30 09:49:58 +11:00
parent cd03a842b4
commit 8b3c018f54

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));