mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:39:59 -04:00
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:
parent
d0165070c7
commit
80fae7a4b7
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue