From: Tony Finch Date: Mon, 12 Jun 2023 11:51:02 +0000 (+0100) Subject: Fix the style of an array de-allocation in dnssec-cds X-Git-Tag: v9.19.17~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6271f3c0541f6f93b8f34e3ee7c9f645185a5b59;p=thirdparty%2Fbind9.git Fix the style of an array de-allocation in dnssec-cds Mention the element size explicitly, so that `matching_sigs()`, `signed_loose()`, and `signed_strict()` use the same calculation. --- diff --git a/bin/dnssec/dnssec-cds.c b/bin/dnssec/dnssec-cds.c index 21ecec919ad..bdb62bf5632 100644 --- a/bin/dnssec/dnssec-cds.c +++ b/bin/dnssec/dnssec-cds.c @@ -739,7 +739,7 @@ signed_strict(dns_rdataset_t *dsset, dns_secalg_t *algo) { } } - isc_mem_put(mctx, algo, nkey); + isc_mem_put(mctx, algo, nkey * sizeof(algo[0])); return (all_ok); }