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

Function empty_tmcb_list

modules/tm/t_hooks.c:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45void empty_tmcb_list(struct tmcb_head_list *head)
46{
47 struct tm_callback *cbp, *cbp_tmp;
48
49 for( cbp=head->first; cbp ; ) {
50 cbp_tmp = cbp;
51 cbp = cbp->next;
52 if (cbp_tmp->release)
53 cbp_tmp->release(cbp_tmp->param);
54 shm_free( cbp_tmp );
55 }
56 head->first = 0 ;
57 head->reg_types = 0;
58}
59
60static struct tmcb_head_list *new_tmcb_list(void)
61{

Callers 4

do_t_cleanupFunction · 0.85
free_cellFunction · 0.85
destroy_tmcb_listsFunction · 0.85
register_tmcbFunction · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected