Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213532

add missing LocalFree calls after using FormatMessage(A) [windows]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 11, 12
    • client-libs
    • None
    • b23
    • generic
    • windows

      When FormatMessageA is used with flag FORMAT_MESSAGE_ALLOCATE_BUFFER
      specified, the allocated buffer has to be freed after usage with LocalFree.

      See the documentation of FormatMessage :

      https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-formatmessage

      This is not always done.

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: