#vulnerable code 
                                public void testWrite() throws Exception {
        final File out1 = File.createTempFile("jdeb", ".ar");

        final ArOutputStream os = new ArOutputStream(new FileOutputStream(out1));
        os.putNextEntry(new ArEntry("data", 4));
        os.write("data".getBytes());        
        os.close();
        
        assertTrue(out1.delete());
    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public void testWrite() throws Exception {
        final File out1 = File.createTempFile("jdeb", ".ar");

        final ArArchiveOutputStream os = new ArArchiveOutputStream(new FileOutputStream(out1));
        os.putArchiveEntry(new ArArchiveEntry("data", 4));
        os.write("data".getBytes());
        os.closeArchiveEntry();
        os.close();
        
        assertTrue(out1.delete());
    }