#vulnerable code 
                             @Test
	public void test1() throws IOException
	{
		File file = folder.newFile();
		Store store = new Store();
		DataFile df = new DataFile(store, 42, file);
		int sector = df.write(3, ByteBuffer.wrap("test".getBytes()));
		ByteBuffer buf = df.read(3, sector, 4);
		String str = new String(buf.array());
		Assert.assertEquals("test", str);
		file.delete();
	} 
                            #location 8 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void test1() throws IOException
	{
		File file = folder.newFile();
		Store store = new Store(folder.getRoot());
		DataFile df = new DataFile(store, 42, file);
		int sector = df.write(3, ByteBuffer.wrap("test".getBytes()));
		ByteBuffer buf = df.read(3, sector, 4);
		String str = new String(buf.array());
		Assert.assertEquals("test", str);
		file.delete();
	}