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

Function destroy

modules/clusterer/clusterer_mod.c:1381–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379}
1380
1381static void destroy(void)
1382{
1383 /* destroy data */
1384 if (cluster_list) {
1385 if (*cluster_list)
1386 free_info(*cluster_list);
1387 shm_free(cluster_list);
1388 cluster_list = NULL;
1389 }
1390
1391 /* destroy lock */
1392 if (cl_list_lock) {
1393 lock_destroy_rw(cl_list_lock);
1394 cl_list_lock = NULL;
1395 }
1396
1397 /* free evi events */
1398 gen_rcv_evs_destroy();
1399 node_state_ev_destroy();
1400}
1401
1402int load_clusterer(struct clusterer_binds *binds)
1403{

Callers

nothing calls this directly

Calls 5

free_infoFunction · 0.85
shm_freeFunction · 0.85
lock_destroy_rwFunction · 0.85
gen_rcv_evs_destroyFunction · 0.85
node_state_ev_destroyFunction · 0.85

Tested by

no test coverage detected