Ignore:
Timestamp:
Jun 7, 2016 10:07:57 AM (8 years ago)
Author:
riza
Message:

Re #1929: Avoid memory pool growing when doing re-Registration.

File:
1 edited

Legend:

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

    r4989 r5336  
    177177        pj_lock_release(regc->lock); 
    178178    } else { 
     179        pjsip_cached_auth *auth = NULL; 
    179180        pjsip_tpselector_dec_ref(&regc->tp_sel); 
    180181        if (regc->last_transport) { 
     
    190191        pj_lock_destroy(regc->lock); 
    191192        regc->lock = NULL; 
     193 
     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 
    192200        pjsip_endpt_release_pool(regc->endpt, regc->pool); 
    193201    } 
Note: See TracChangeset for help on using the changeset viewer.