#fixed code
                                @Test
    public void testHan() throws Exception {
        ChineseCaptcha chineseCaptcha = new ChineseCaptcha();
        //chineseCaptcha.setFont(new Font("微软雅黑", Font.PLAIN, 25));
        System.out.println(chineseCaptcha.text());
        //chineseCaptcha.out(new FileOutputStream(new File("D:/Java/aa.png")));
    }
#vulnerable code 
                                @Test
    public void testHan() throws Exception {
        ChineseCaptcha chineseCaptcha = new ChineseCaptcha();
        //chineseCaptcha.setFont(new Font("微软雅黑", Font.PLAIN, 25));
        System.out.println(chineseCaptcha.text());
        chineseCaptcha.out(new FileOutputStream(new File("D:/Java/aa.png")));
    } 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK