mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
remove dead cleanup code.
13836 if (zone != NULL) 13837 dns_zone_detach(&zone); null: At condition dz != NULL, the value of dz must be NULL. dead_error_condition: The condition dz != NULL cannot be true. 13838 if (dz != NULL) { CID 1453456 (#1 of 1): Logically dead code (DEADCODE) dead_error_begin: Execution cannot reach this statement: dns_zone_detach(&dz->zone);. 13839 dns_zone_detach(&dz->zone); 13840 isc_mem_put(named_g_mctx, dz, sizeof(*dz)); 13841 }
This commit is contained in:
parent
1efc7550a3
commit
b6c3a2f172
@ -13835,10 +13835,6 @@ named_server_delzone(named_server_t *server, isc_lex_t *lex,
|
||||
dns_zone_detach(&raw);
|
||||
if (zone != NULL)
|
||||
dns_zone_detach(&zone);
|
||||
if (dz != NULL) {
|
||||
dns_zone_detach(&dz->zone);
|
||||
isc_mem_put(named_g_mctx, dz, sizeof(*dz));
|
||||
}
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user