mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
decrement zl->refs on error
This commit is contained in:
@@ -9351,7 +9351,11 @@ load_zones(named_server_t *server, bool init, bool reconfig) {
|
|||||||
* zones.
|
* zones.
|
||||||
*/
|
*/
|
||||||
isc_refcount_increment(&zl->refs);
|
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:
|
cleanup:
|
||||||
|
Reference in New Issue
Block a user