Changeset 5373
- Timestamp:
- Jun 30, 2016 8:23:08 AM (8 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_auth.h
r5336 r5373 343 343 344 344 /** 345 * Deinitialize client authentication session data structure. 346 * 347 * @param sess The client authentication session. 348 * 349 * @return PJ_SUCCESS on success. 350 */ 351 PJ_DECL(pj_status_t) pjsip_auth_clt_deinit( pjsip_auth_clt_sess *sess); 352 353 354 /** 345 355 * Clone client initialization session. 346 356 * -
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r5170 r5373 223 223 if (pubc->mutex) 224 224 pj_mutex_destroy(pubc->mutex); 225 226 pjsip_auth_clt_deinit(&pubc->auth_sess); 225 227 pjsip_endpt_release_pool(pubc->endpt, pubc->pool); 226 228 } -
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r5356 r5373 177 177 pj_lock_release(regc->lock); 178 178 } else { 179 pjsip_cached_auth *auth = NULL;180 179 pjsip_tpselector_dec_ref(®c->tp_sel); 181 180 if (regc->last_transport) { … … 192 191 regc->lock = NULL; 193 192 194 auth = regc->auth_sess.cached_auth.next; 195 while (auth != ®c->auth_sess.cached_auth) { 196 pjsip_endpt_release_pool(regc->endpt, auth->pool); 197 auth = auth->next; 198 } 199 193 pjsip_auth_clt_deinit(®c->auth_sess); 200 194 pjsip_endpt_release_pool(regc->endpt, regc->pool); 201 195 } -
pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c
r5336 r5373 500 500 501 501 502 /* Deinit client session. */ 503 PJ_DEF(pj_status_t) pjsip_auth_clt_deinit(pjsip_auth_clt_sess *sess) 504 { 505 pjsip_cached_auth *auth; 506 507 PJ_ASSERT_RETURN(sess && sess->endpt, PJ_EINVAL); 508 509 auth = sess->cached_auth.next; 510 while (auth != &sess->cached_auth) { 511 pjsip_endpt_release_pool(sess->endpt, auth->pool); 512 auth = auth->next; 513 } 514 515 return PJ_SUCCESS; 516 } 517 518 502 519 /* Clone session. */ 503 520 PJ_DEF(pj_status_t) pjsip_auth_clt_clone( pj_pool_t *pool, … … 965 982 pjsip_cached_auth *auth ) 966 983 { 967 pj_pool_t *auth_pool = pjsip_endpt_create_pool(endpt, " regc_auth%p", 1024,984 pj_pool_t *auth_pool = pjsip_endpt_create_pool(endpt, "auth_cli%p", 1024, 968 985 1024); 969 986 … … 1164 1181 cached_auth = PJ_POOL_ZALLOC_T(sess->pool, pjsip_cached_auth); 1165 1182 cached_auth->pool = pjsip_endpt_create_pool(sess->endpt, 1166 " regc_auth%p",1183 "auth_cli%p", 1167 1184 1024, 1168 1185 1024); -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r5316 r5373 120 120 pj_bzero(&dlg->tp_sel, sizeof(pjsip_tpselector)); 121 121 } 122 pjsip_auth_clt_deinit(&dlg->auth_sess); 122 123 pjsip_endpt_release_pool(dlg->endpt, dlg->pool); 123 124 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c
r4890 r5373 388 388 if (status == PJ_SUCCESS) { 389 389 /* Done */ 390 pjsip_auth_clt_deinit(&auth); 390 391 return; 391 392 } 393 pjsip_auth_clt_deinit(&auth); 392 394 } 393 395 } … … 490 492 if (status == PJ_SUCCESS) { 491 493 /* Done */ 494 pjsip_auth_clt_deinit(&auth); 492 495 return; 493 496 } 497 pjsip_auth_clt_deinit(&auth); 494 498 } 495 499 }
Note: See TracChangeset
for help on using the changeset viewer.