From 80fae7a4b7d8f9aa5aedb5f5ad34f90ce1ad3e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sat, 14 Mar 2026 12:52:07 +0100 Subject: [PATCH] Fix memory leak in ixfr_commit() error path The 'data' allocation was not freed when reaching the cleanup label with an error result. --- lib/dns/xfrin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index 783b7d0dd1..feff048e9a 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -686,6 +686,9 @@ ixfr_commit(dns_xfrin_t *xfr) { } cleanup: + if (result != ISC_R_SUCCESS) { + isc_mem_put(xfr->mctx, data, sizeof(*data)); + } return result; }