MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / destroy_avp

Function destroy_avp

usr_avp.c:389–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387/********* free functions ********/
388
389void destroy_avp( struct usr_avp *avp_del)
390{
391 struct usr_avp *avp;
392 struct usr_avp *avp_prev;
393
394 for( avp_prev=0,avp=*crt_avps ; avp ; avp_prev=avp,avp=avp->next ) {
395 if (avp==avp_del) {
396 if (avp_prev)
397 avp_prev->next=avp->next;
398 else
399 *crt_avps = avp->next;
400 shm_free(avp);
401 return;
402 }
403 }
404}
405
406int destroy_avps( unsigned short flags, int name, int all)
407{

Callers 13

next_branchesFunction · 0.85
destroy_avpsFunction · 0.85
destroy_index_avpFunction · 0.85
set_msg_branch_attrFunction · 0.85
ds_next_dstFunction · 0.85
lb_routeFunction · 0.85
do_lb_resetFunction · 0.85
ospGetAVPFunction · 0.85
get_watchers_from_avpFunction · 0.85
rtpproxy_all_stats_fFunction · 0.85
_pv_set_tm_branch_fieldFunction · 0.85
use_next_gwFunction · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected