From: Evan Hunt Date: Sat, 1 Jun 2024 00:16:29 +0000 (-0700) Subject: fix a memory leak that could occur when signing X-Git-Tag: v9.20.0~8^2~3 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7dd6b47ace3f43ebcd72c382bcb5f962f8f32af7;p=thirdparty%2Fbind9.git fix a memory leak that could occur when signing when signatures were not added because of too many types already existing at a node, the diff was not being cleaned up; this led to a memory leak being reported at shutdown. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 9f152a7c025..f8c0723ff6b 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -9743,6 +9743,7 @@ cleanup: } dns_diff_clear(&_sig_diff); + dns_diff_clear(&post_diff); for (i = 0; i < nkeys; i++) { dst_key_free(&zone_keys[i]);