#fixed code
                              public void testBlockCompressionGzip() throws Exception {
    doTestBlockCompression(BlockCompressionCodec.GZIP, EXPECTED_RECORD_FILE_BLOCK_COMPRESSED_GZIP);
  }
#vulnerable code 
                              public void testBlockCompressionGzip() throws Exception {
    new File(TMP_TEST_CURLY_READER).mkdirs();
    OutputStream s = new FileOutputStream(TMP_TEST_CURLY_READER + "/00000.base.curly");
    s.write(EXPECTED_RECORD_FILE_BLOCK_COMPRESSED_GZIP);
    s.flush();
    s.close();

    MapReader keyfileReader = new MapReader(0,
        KEY1.array(), new byte[]{0, 0, 0, 0, 0},
        KEY2.array(), new byte[]{0, 0, 0, 5, 0},
        KEY3.array(), new byte[]{0, 0, 0, 10, 0}
    );

    CurlyReader reader = new CurlyReader(CurlyReader.getLatestBase(TMP_TEST_CURLY_READER), 1024, keyfileReader, -1,
        BlockCompressionCodec.GZIP, 3, 2, true);

    ReaderResult result = new ReaderResult();

    reader.get(KEY1, result);
    assertTrue(result.isFound());
    assertEquals(VALUE1, result.getBuffer());
    result.clear();

    reader.get(KEY4, result);
    assertFalse(result.isFound());
    result.clear();

    reader.get(KEY3, result);
    assertTrue(result.isFound());
    assertEquals(VALUE3, result.getBuffer());
    result.clear();

    reader.get(KEY2, result);
    assertTrue(result.isFound());
    assertEquals(VALUE2, result.getBuffer());
    result.clear();
  } 
                            #location 14 
                            #vulnerability type RESOURCE_LEAK