PDA

View Full Version : CFWriteSteamOpen() leaks 3.5KB sometimes?!?!!




imho
Nov 25, 2008, 09:45 PM
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?



imho
Dec 1, 2008, 03:57 AM
nobody?

imho
Dec 2, 2008, 03:19 AM
nobody?

imho
Jan 15, 2009, 03:41 PM
No one had the same problem?

Doctor Q
Jan 15, 2009, 07:05 PM
Thread closed for Forum Rules violation (Bumps).

See Forum Rule: Bumps for further information.