Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2528

Possible leaks in DarwinSSL implementation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Running tests with instruments flags leaks in our secure transport SSL implementation.

      Offending code seems to be here.

         id = SecIdentityCreate (kCFAllocatorDefault, cert, key);
         secure_transport->my_cert =
            CFArrayCreateMutableCopy (kCFAllocatorDefault, (CFIndex) 2, items);
      
         CFArraySetValueAtIndex (secure_transport->my_cert, 0, id);
         CFArraySetValueAtIndex (secure_transport->my_cert, 1, cert);
      

      And here:

       secure_transport->anchors = CFRetain (anchors);
      

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: