Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.

imho

macrumors newbie
Original poster
Jul 31, 2008
29
0
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?
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.