[9.18] named-rrchecker: have fatal cleanup
Backport of MR !7473 (merged)
It is trivial to fully cleanup memory on all the error paths in named-rrchecker, many of which are triggered by bad user input. This involves freeing lex and mctx if they exist when fatal is called.
(cherry picked from commit dbe82813)
Closes #3838 (closed)
Edited by Mark Andrews