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

Discussion in 'iOS Programming' started by imho, Nov 25, 2008.

Thread Status:
Not open for further replies.
  1. imho
    Expand Collapse
    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. imho
    Expand Collapse
    thread starter macrumors newbie

    Joined:
    Jul 31, 2008
  3. imho
    Expand Collapse
    thread starter macrumors newbie

    Joined:
    Jul 31, 2008
  4. imho
    Expand Collapse
    thread starter macrumors newbie

    Joined:
    Jul 31, 2008
  5. Doctor Q
    Expand Collapse
    Administrator

    Doctor Q

    Staff Member

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

Share This Page