#vulnerable code 
                              private String getGeneratedManifestAttribute(final String key)
      throws IOException, FileNotFoundException {
    final Option<String> actual = this.testee.getJarLocation();
    final File f = new File(actual.value());
    final JarInputStream jis = new JarInputStream(new FileInputStream(f));
    final Manifest m = jis.getManifest();
    final Attributes a = m.getMainAttributes();
    final String am = a.getValue(key);
    return am;
  } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              private String getGeneratedManifestAttribute(final String key)
      throws IOException, FileNotFoundException {
    final Option<String> actual = this.testee.getJarLocation();
    final File f = new File(actual.value());
    final JarInputStream jis = new JarInputStream(new FileInputStream(f));
    final Manifest m = jis.getManifest();
    final Attributes a = m.getMainAttributes();
    final String am = a.getValue(key);
    jis.close();
    return am;
  }