From b89e516420da10869f391d438eb0cd45724a9521 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 31 May 2024 17:16:29 -0700 Subject: [PATCH] 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. (cherry picked from commit 2825bdb1ae5be801e7ed603ba2455ed9a308f1f7) --- lib/dns/zone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 9b27c4a90a..3e00c4179d 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -10031,6 +10031,7 @@ cleanup: } dns_diff_clear(&_sig_diff); + dns_diff_clear(&post_diff); for (i = 0; i < nkeys; i++) { dst_key_free(&zone_keys[i]);