output: #fixed code
                                  public static NSObject parse(File f) throws Exception {
          FileInputStream fis = new FileInputStream(f);
          return parse(fis);
      }
input: #vulnerable code 
                                  public static NSObject parse(File f) throws Exception {
          FileInputStream fis = new FileInputStream(f);
          byte[] magic = new byte[8];
          fis.read(magic);
          String magic_string = new String(magic);
          fis.close();
          if (magic_string.startsWith("bplist00")) {
              return BinaryPropertyListParser.parse(f);
          } else if (magic_string.startsWith("<?xml")) {
              return XMLPropertyListParser.parse(f);
          } else {
              throw new UnsupportedOperationException("The given file is neither a binary nor a XML property list. ASCII property lists are not supported.");
          }
      } 
                              #location 12 
                              #vulnerability type RESOURCE_LEAK