#vulnerable code 
                              @Test
  public void testShort_LittleEndian() throws Exception {
    assertArrayEquals(new byte []{0x02,01}, binStart().ByteOrder(JBBPByteOrder.LITTLE_ENDIAN).Short(0x0102).end().toByteArray());
  } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test
  public void testShort_LittleEndian() throws Exception {
    assertArrayEquals(new byte []{0x02,01}, BeginBin().ByteOrder(JBBPByteOrder.LITTLE_ENDIAN).Short(0x0102).End().toByteArray());
  }