parser: fixed TidyDoc leak