Memory Leak - Not Sure How/Where to CFRelease() CFSet
问题 I'm yet again struggling with a memory leak, and need some help figuring this one out. I know (or am pretty sure) the CFSet(s) are the problem here. I assume I need to CFRelease() them, but am not sure how to accomplish this since I also need to return a CFSet in USBDeviceCount(). Any help would be appreciated! Thank you! Here's the code (which seemingly works great! except for the leaks): // New USB device has been added (callback function) static void Handle_DeviceMatchingCallback(void