#vulnerable code 
                                @Test
    public void testCreate() throws Exception {
        File f1 = newTempraryFile("vmf-create-1");
        File f2 = newTempraryFile("vmf-create-2");

        VanillaMappedFile vmf1 = new VanillaMappedFile(f1,VanillaMappedMode.RW);
        VanillaMappedFile vmf2 = new VanillaMappedFile(f2,VanillaMappedMode.RW,128);

        assertTrue(f1.exists());
        assertTrue(f2.exists());

        assertEquals(  0, vmf1.size());
        assertEquals(128, vmf2.size());

        vmf1.close();
        vmf2.close();
    } 
                            #location 17 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void testCreate() throws Exception {
        File f1 = newTempraryFile("vmf-create-1");
        File f2 = newTempraryFile("vmf-create-2");

        VanillaMappedFile vmf1 = VanillaMappedFile.readWrite(f1);
        VanillaMappedFile vmf2 = VanillaMappedFile.readWrite(f2,128);

        assertTrue(f1.exists());
        assertTrue(f2.exists());

        assertEquals(0, vmf1.size());
        assertEquals(128, vmf2.size());

        vmf1.close();
        vmf2.close();
    }