#fixed code
                              public static ApiClient fromConfig(String fileName) throws IOException {
    KubeConfig config = KubeConfig.loadKubeConfig(new FileReader(fileName)); // TODO UTF-8
    config.setFile(new File(fileName));
    return fromConfig(config);
  }
#vulnerable code 
                              public static ApiClient fromConfig(String fileName) throws IOException {
    return fromConfig(new FileReader(fileName));
  } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK