#vulnerable code 
                                public static String getPwd(){
        System.out.print("Please enter the password, if the account has no password directly return.\nEnter your password:");
        ConsoleReader reader = null;
        try {
            reader = new ConsoleReader();
            String pwd = reader.readLine('*');
            return pwd;
        } catch (IOException e) {
            return null;
        }finally {
            try {
                if(!reader.delete()){
                    reader.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    } 
                            #location 12 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                public static String getPwd() {
        return getPwd(null);
    }