mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +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:
commit
b7c62b29d9
@ -641,14 +641,12 @@ create_db(isc_mem_t *mctx, const dns_name_t *origin, dns_dbtype_t type,
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
cleanup:
|
||||
if (sampledb != NULL) {
|
||||
if (dns_name_dynamic(&sampledb->common.origin)) {
|
||||
dns_name_free(&sampledb->common.origin, mctx);
|
||||
}
|
||||
|
||||
isc_mem_putanddetach(&sampledb->common.mctx, sampledb,
|
||||
sizeof(*sampledb));
|
||||
if (dns_name_dynamic(&sampledb->common.origin)) {
|
||||
dns_name_free(&sampledb->common.origin, mctx);
|
||||
}
|
||||
|
||||
isc_mem_putanddetach(&sampledb->common.mctx, sampledb,
|
||||
sizeof(*sampledb));
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user