I'd been profiling my networked app on an iphone recently and sometimes (maybe 2 out of 5) i get a 3.5KB leak on CFWriteStreamOpen().
Tracing down the call stack, the last few functions are:
malloc
pthread_create
si_async_call
getaddrinfo_async_call
getaddrinfo_async_start
It seems to be related to the asynchronous callback that i had set with CFWriteStreamScheduleWithRunLoop() but i did remove myself from the run loop once i'm done and the CFHost and CFWriteStream are both released using CFRelease().
Not sure what else i could've done wrong to be leaking 3.5KB sometimes and not all the time... Anybody had any ideas or encountered the same issue before?
Tracing down the call stack, the last few functions are:
malloc
pthread_create
si_async_call
getaddrinfo_async_call
getaddrinfo_async_start
It seems to be related to the asynchronous callback that i had set with CFWriteStreamScheduleWithRunLoop() but i did remove myself from the run loop once i'm done and the CFHost and CFWriteStream are both released using CFRelease().
Not sure what else i could've done wrong to be leaking 3.5KB sometimes and not all the time... Anybody had any ideas or encountered the same issue before?