fix minor mem issues in config include code