#vulnerable code 
                              @Test
  public void testShortArray_AsShortArray() throws Exception {
    assertArrayEquals(new byte[]{1, 2, 3, 4}, binStart().Short(new short[]{(short)0x0102, (short)0x0304}).end().toByteArray());
  } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test
  public void testShortArray_AsShortArray() throws Exception {
    assertArrayEquals(new byte[]{1, 2, 3, 4}, BeginBin().Short(new short[]{(short)0x0102, (short)0x0304}).End().toByteArray());
  }