config_file_name/1: fix use after free