#vulnerable code 
                             public static Torrent load(File torrent, File parent, boolean seeder)
		throws IOException {
		FileInputStream fis = new FileInputStream(torrent);
		byte[] data = new byte[(int)torrent.length()];
		fis.read(data);
		fis.close();
		return new Torrent(data, parent, seeder);
	} 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public static Torrent load(File torrent, File parent, boolean seeder)
		throws IOException, NoSuchAlgorithmException {
		FileInputStream fis = null;
		try {
			fis = new FileInputStream(torrent);
			byte[] data = new byte[(int)torrent.length()];
			fis.read(data);
			return new Torrent(data, parent, seeder);
		} finally {
			if (fis != null) {
				fis.close();
			}
		}
	}