Commit 33132406 authored by Mark Andrews's avatar Mark Andrews
Browse files

decrement zl->refs on error

parent 9cf529fa
Pipeline #7148 passed with stages
in 25 minutes and 30 seconds
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment