#vulnerable code 
                              @Test public void readingDoesNotBuffer() throws IOException {
    Buffer buffer = new Buffer().writeUtf8("{}{}");

    JsonReader reader1 = new JsonReader(buffer);
    reader1.beginObject();
    reader1.endObject();
    assertThat(buffer.size()).isEqualTo(2);

    JsonReader reader2 = new JsonReader(buffer);
    reader2.beginObject();
    reader2.endObject();
    assertThat(buffer.size()).isEqualTo(0);
  } 
                            #location 13 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                              @Test public void readingDoesNotBuffer() throws IOException {
    Buffer buffer = new Buffer().writeUtf8("{}{}");

    JsonReader reader1 = JsonReader.of(buffer);
    reader1.beginObject();
    reader1.endObject();
    assertThat(buffer.size()).isEqualTo(2);

    JsonReader reader2 = JsonReader.of(buffer);
    reader2.beginObject();
    reader2.endObject();
    assertThat(buffer.size()).isEqualTo(0);
  }