#fixed code
                                @Test
    public void testParse_String1() {
        BEParser parser = new BEParser("1:s".getBytes());
        assertEquals(BEType.STRING, parser.readType());
        assertEquals("s", parser.readString(charset));
    }
#vulnerable code 
                                @Test
    public void testParse_String1() {
        BEParser parser = new BEParser("1:s");
        assertEquals(BEType.STRING, parser.readType());
        assertEquals("s", parser.readString());
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK