#vulnerable code 
                                @Test
    public void test() {
        JedisPoolConfig config = new JedisPoolConfig();
        // 设置空间连接

        config.setMaxIdle(20);
        config.setMaxWaitMillis(1000);


        JedisPool pool = new JedisPool(config, "27.126.180.210", 6379);
        System.out.println(pool.getResource());
        Jedis jedis = pool.getResource();
        jedis.set("name", "陈杰");
        System.out.println(jedis.get("name"));

    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Test
    public void test() {
        JedisPoolConfig config = new JedisPoolConfig();
        // 设置空间连接

        config.setMaxIdle(20);
        config.setMaxWaitMillis(1000);


//        JedisPool pool = new JedisPool(config, "27.126.180.210", 6379);
//        System.out.println(pool.getResource());
//        Jedis jedis = pool.getResource();
//        jedis.set("name", "陈杰");
//        System.out.println(jedis.get("name"));

    }