Commit 173a50a0ee for bind
commit 173a50a0eec37abf34479240867504600340da63
Author: Petr Špaček <pspacek@isc.org>
Date: Wed Nov 4 10:40:42 2026 +0000
Release the fuzz context when database creation fails
Assisted-by: Codex:gpt-6
diff --git a/fuzz/dns_master_load.c b/fuzz/dns_master_load.c
index 1683d088dd..fb22a9e1fd 100644
--- a/fuzz/dns_master_load.c
+++ b/fuzz/dns_master_load.c
@@ -53,6 +53,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
dns_dbtype_zone, dns_rdataclass_in, 0, NULL,
&db);
if (result != ISC_R_SUCCESS) {
+ isc_mem_detach(&mctx);
return 0;
}