config_file: Fix memory leak