如何在没有记忆泄露的情况下归还CFDataRef?
原文:How to return CFDataRef without memory leak?[ios]
原文:How to return CFDataRef without memory leak?[ios]
When I return a CFDataRef by (CFDataRef)MyFunction{ ..... CFDataRef data = CFDataCreate(NULL, buf, bufLen); free(buf); return data; } There is a memory leak, how to make CFDataRef ...