#vulnerable code 
                              @Test public void readerMultipleValueObject() throws Exception {
    JsonReader reader = newReader("{\"a\":1,\"b\":2}");
    reader.beginObject();
    assertThat(reader.nextName()).isEqualTo("a");
    assertThat(reader.nextInt()).isEqualTo(1);
    reader.promoteNameToValue();
    assertThat(reader.getPath()).isEqualTo("$.b");
    assertThat(reader.peek()).isEqualTo(JsonReader.Token.STRING);
    assertThat(reader.nextString()).isEqualTo("b");
    assertThat(reader.getPath()).isEqualTo("$.b");
    assertThat(reader.nextInt()).isEqualTo(2);
    assertThat(reader.getPath()).isEqualTo("$.b");
    reader.endObject();
    assertThat(reader.getPath()).isEqualTo("$");
  } 
                            #location 15 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test public void readerMultipleValueObject() throws Exception {
    JsonReader reader = factory.newReader("{\"a\":1,\"b\":2}");
    reader.beginObject();
    assertThat(reader.nextName()).isEqualTo("a");
    assertThat(reader.nextInt()).isEqualTo(1);
    reader.promoteNameToValue();
    assertThat(reader.getPath()).isEqualTo("$.b");
    assertThat(reader.peek()).isEqualTo(JsonReader.Token.STRING);
    assertThat(reader.nextString()).isEqualTo("b");
    assertThat(reader.getPath()).isEqualTo("$.b");
    assertThat(reader.nextInt()).isEqualTo(2);
    assertThat(reader.getPath()).isEqualTo("$.b");
    reader.endObject();
    assertThat(reader.getPath()).isEqualTo("$");
  }