#vulnerable code 
                             @Test
	public void test1() throws IOException
	{
		File file = folder.newFile();
		Store store = new Store();
		IndexFile index = new IndexFile(store, 5, file);
		IndexEntry entry = new IndexEntry(index, 7, 8, 9);
		index.write(entry);
		IndexEntry entry2 = index.read(7);
		Assert.assertEquals(entry, entry2);
	} 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void test1() throws IOException
	{
		File file = folder.newFile();
		Store store = new Store(folder.getRoot());
		IndexFile index = new IndexFile(store, 5, file);
		IndexEntry entry = new IndexEntry(index, 7, 8, 9);
		index.write(entry);
		IndexEntry entry2 = index.read(7);
		Assert.assertEquals(entry, entry2);
	}