Tweaks to KeyMatchFull.cpp - additional list.txt checks and memory management