In cfg_parse_buffer and cfg_parse_file 'pctx' was being checked
for being non-NULL when it was guarenteed to be non-NULL. This
raised Coverity issues ID 637688 and ID 637689.
ISC_LIST_APPEND(pctx->closed_files->value.list, elt, link);
cleanup:
- if (pctx != NULL) {
- parser_destroy(&pctx);
- }
+ parser_destroy(&pctx);
return result;
}
pctx->buf_name = NULL;
cleanup:
- if (pctx != NULL) {
- parser_destroy(&pctx);
- }
+ parser_destroy(&pctx);
return result;
}