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

Function destroy_ehtable

modules/emergency/hash.c:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124void destroy_ehtable(emetable_t htable, int hash_size){
125 int i;
126
127 if(htable== NULL)
128 return;
129
130 for(i= 0; i< hash_size; i++)
131 {
132 lock_destroy(&htable[i].lock);
133 free_call_list(htable[i].entries->next);
134 shm_free(htable[i].entries);
135 }
136 shm_free(htable);
137 htable= NULL;
138}
139
140void destroy_shtable(sbtable_t htable, int hash_size){
141 int i;

Callers 1

mod_destroyFunction · 0.85

Calls 3

lock_destroyFunction · 0.85
free_call_listFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected