diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index e4fd46bd30..5a08a06577 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -1494,6 +1494,7 @@ dns_dispatch_add(dns_dispatch_t *disp, isc_loop_t *loop, fail: if (result != ISC_R_SUCCESS) { isc_mem_put(disp->mctx, resp, sizeof(*resp)); + rcu_read_unlock(); return (result); }