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

Function destroy_data

modules/dialplan/dp_db.c:206–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206void destroy_data(void)
207{
208 dp_connection_list_t *el, *next;
209
210 LM_DBG("Destroying data\n");
211 for (el = dp_conns; el && (next = el->next, 1); el = next) {
212 destroy_hash(&el->hash[0]);
213 destroy_hash(&el->hash[1]);
214 lock_destroy_rw(el->ref_lock);
215
216 shm_free(el->table_name.s);
217 shm_free(el->partition.s);
218 shm_free(el->db_url.s);
219 shm_free(el);
220 }
221}
222
223int dp_load_all_db(int initial)
224{

Callers 1

mod_destroyFunction · 0.85

Calls 3

destroy_hashFunction · 0.85
lock_destroy_rwFunction · 0.85
shm_freeFunction · 0.85

Tested by

no test coverage detected