#vulnerable code 
                              @Test
  public void testBits_ByteArray() throws Exception {
    assertArrayEquals(new byte[]{(byte) 0xED}, binStart().Bits(JBBPNumberOfBits.BITS_4, (byte) 0xFD, (byte) 0x8E).end().toByteArray());
  } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test
  public void testBits_ByteArray() throws Exception {
    assertArrayEquals(new byte[]{(byte) 0xED}, BeginBin().Bits(JBBPNumberOfBits.BITS_4, (byte) 0xFD, (byte) 0x8E).End().toByteArray());
  }