fix not being able to free config_file from --restore