mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Merge branch '3994-unnecessary-null-check' into 'main'
Resolve "Unnecessary NULL check" Closes #3994 See merge request isc-projects/bind9!7783
This commit is contained in:
@@ -358,7 +358,7 @@ plugin_register(const char *parameters, const void *cfg, const char *cfg_file,
|
||||
*instp = inst;
|
||||
|
||||
cleanup:
|
||||
if (result != ISC_R_SUCCESS && inst != NULL) {
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
plugin_destroy((void **)&inst);
|
||||
}
|
||||
|
||||
|
@@ -362,7 +362,7 @@ plugin_register(const char *parameters, const void *cfg, const char *cfg_file,
|
||||
*instp = inst;
|
||||
|
||||
cleanup:
|
||||
if (result != ISC_R_SUCCESS && inst != NULL) {
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
plugin_destroy((void **)&inst);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user