config_rename_section: fix FILE* leak