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

fix CFData object leak in macosx KeystoreImpl.m

XMLWordPrintable

    • b08
    • generic
    • os_x

        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.

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

                Created:
                Updated:
                Resolved: