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

fix CFData object leak in macosx KeystoreImpl.m

    XMLWordPrintable

Details

    • b08
    • generic
    • os_x

    Backports

      Description

        In KeystoreImpl.m we call CFDataCreate at one place.
        According to

        https://developer.apple.com/documentation/corefoundation/1542359-cfdatacreate?language=objc

        the return value of CFDataCreate is

        "A new CFData object, or NULL if there was a problem creating the object. Ownership follows the The Create Rule."

        Following the "Create Rule" we have to release the return value to avoid leaks.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: