Use coccinelle to cleanup the failure handling blocks from isc_mem_strdup

This commit is contained in:
Ondřej Surý
2019-07-23 11:12:11 -04:00
parent 601cb4e4cc
commit 9bdc24a9fd
37 changed files with 10 additions and 269 deletions

View File

@@ -82,10 +82,6 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters,
}
s = isc_mem_strdup(mctx, parameters);
if (s == NULL) {
result = ISC_R_NOMEMORY;
goto cleanup;
}
result = isc_commandline_strtoargv(mctx, s, &argc, &argv, 0);
if (result != ISC_R_SUCCESS) {