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

Merge branch '717-bin-named-server-c-load_zones-can-leak-memory' into 'master'

Resolve "bin/named/server.c:load_zones can leak memory"

Closes #717

See merge request !1104
parents 9cf529fa 33132406
Pipeline #7149 failed with stages
in 14 minutes and 15 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