[CDRIVER-2528] Possible leaks in DarwinSSL implementation Created: 05/Mar/18  Updated: 28/Oct/23  Resolved: 09/Mar/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.10.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2529 Consider using memory checking tools ... Backlog

 Description   

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);



 Comments   
Comment by Githook User [ 09/Mar/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2528 fix secure transport leaks
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/2dfe74c9a1f2c555d6f052312272857b22c2cb25

Generated at Wed Feb 07 21:15:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.