#fixed code
                                @Test
    @Ignore
    public void benchmarkByteLargeArray() {
        long length = 1L << 32;
        long start = System.nanoTime();
        DirectBytes array = DirectStore.allocateLazy(length).bytes();
        System.out.println("Constructor time: " + (System.nanoTime() - start) / 1e9 + " sec");
        int iters = 2;
        byte one = 1;
        start = System.nanoTime();
        for (int it = 0; it < iters; it++) {
            for (long i = 0; i < length; i++) {
                array.writeByte(i, one);
                array.writeByte(i, (byte) (array.readByte(i) + one));
            }
        }
        System.out.println("Computation time: " + (System.nanoTime() - start) / 1e9 / iters + " sec");
    }
#vulnerable code 
                                @Test
    @Ignore
    public void benchmarkByteLargeArray() {
        long length = 1L << 32;
        long start = System.nanoTime();
        DirectBytes array = DirectStore.allocateLazy(length).createSlice();
        System.out.println("Constructor time: " + (System.nanoTime() - start) / 1e9 + " sec");
        int iters = 2;
        byte one = 1;
        start = System.nanoTime();
        for (int it = 0; it < iters; it++) {
            for (long i = 0; i < length; i++) {
                array.writeByte(i, one);
                array.writeByte(i, (byte) (array.readByte(i) + one));
            }
        }
        System.out.println("Computation time: " + (System.nanoTime() - start) / 1e9 / iters + " sec");
    } 
                            #location 17 
                            #vulnerability type RESOURCE_LEAK