Fix memory leak in ixfr_commit() error path

The 'data' allocation was not freed when reaching the cleanup
label with an error result.
This commit is contained in:
Ondřej Surý 2026-03-14 12:52:07 +01:00
parent d0165070c7
commit 80fae7a4b7
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -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;
}