mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch 'marka-cleanup-cid-464884' into 'main'
Silence CID 464884 (REVERSE_INULL) See merge request isc-projects/bind9!8248
This commit is contained in:
@@ -641,14 +641,12 @@ create_db(isc_mem_t *mctx, const dns_name_t *origin, dns_dbtype_t type,
|
|||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (sampledb != NULL) {
|
if (dns_name_dynamic(&sampledb->common.origin)) {
|
||||||
if (dns_name_dynamic(&sampledb->common.origin)) {
|
dns_name_free(&sampledb->common.origin, mctx);
|
||||||
dns_name_free(&sampledb->common.origin, mctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
isc_mem_putanddetach(&sampledb->common.mctx, sampledb,
|
|
||||||
sizeof(*sampledb));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isc_mem_putanddetach(&sampledb->common.mctx, sampledb,
|
||||||
|
sizeof(*sampledb));
|
||||||
|
|
||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user