Ignore:
Timestamp:
Jun 30, 2016 8:23:08 AM (8 years ago)
Author:
ming
Message:

Fixed #1929: Fixed memory leak when using sip_auth_client since it's also used by other components, such as sip_dialog, publishc, and pjsua_im.

Application should use the new API pjsip_auth_clt_deinit() to release the pool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r5356 r5373  
    177177        pj_lock_release(regc->lock); 
    178178    } else { 
    179         pjsip_cached_auth *auth = NULL; 
    180179        pjsip_tpselector_dec_ref(&regc->tp_sel); 
    181180        if (regc->last_transport) { 
     
    192191        regc->lock = NULL; 
    193192 
    194         auth = regc->auth_sess.cached_auth.next; 
    195         while (auth != &regc->auth_sess.cached_auth) { 
    196             pjsip_endpt_release_pool(regc->endpt, auth->pool); 
    197             auth = auth->next; 
    198         } 
    199  
     193        pjsip_auth_clt_deinit(&regc->auth_sess); 
    200194        pjsip_endpt_release_pool(regc->endpt, regc->pool); 
    201195    } 
Note: See TracChangeset for help on using the changeset viewer.