CFWriteSteamOpen() leaks 3.5KB sometimes?!?!!

Discussion in 'iPhone/iPad Programming' started by imho, Nov 25, 2008.

Thread Status:
Not open for further replies.
  1. macrumors newbie

    Joined:
    Jul 31, 2008
    #1
    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?
     
  2. thread starter macrumors newbie

    Joined:
    Jul 31, 2008
    #2
    nobody?
     
  3. thread starter macrumors newbie

    Joined:
    Jul 31, 2008
    #3
    nobody?
     
  4. thread starter macrumors newbie

    Joined:
    Jul 31, 2008
    #4
    No one had the same problem?
     
  5. Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #5
Thread Status:
Not open for further replies.

Share This Page