#fixed code
                                @Benchmark
    public void fastjson() {
        JSON.parseObject(JsoniterBenchmarkState.inputString, byte[].class);
    }
#vulnerable code 
                                @Benchmark
    public void fastjson() {
        JSONScanner scanner = new JSONScanner(JsoniterBenchmarkState.inputString);
        scanner.nextToken();
        do {
            scanner.nextToken();
            scanner.intValue();
            scanner.nextToken();
        } while (scanner.token() == JSONToken.COMMA);
    } 
                            #location 10 
                            #vulnerability type RESOURCE_LEAK