mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
decrement zl->refs on error
This commit is contained in:
parent
9cf529fa50
commit
33132406a3
1 changed files with 5 additions and 1 deletions
|
|
@ -9351,7 +9351,11 @@ load_zones(named_server_t *server, bool init, bool reconfig) {
|
|||
* zones.
|
||||
*/
|
||||
isc_refcount_increment(&zl->refs);
|
||||
CHECK(dns_view_asyncload(view, reconfig, view_loaded, zl));
|
||||
result = dns_view_asyncload(view, reconfig, view_loaded, zl);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_refcount_decrement(&zl->refs);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
cleanup:
|
||||
|
|
|
|||
Loading…
Reference in a new issue