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

Function free_info

modules/clusterer/node_info.c:914–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914void free_info(cluster_info_t *cl_list)
915{
916 cluster_info_t *tmp_cl;
917 cluster_bridge_t *br, *br_next;
918 node_info_t *info, *tmp_info;
919
920 while (cl_list != NULL) {
921 tmp_cl = cl_list;
922 cl_list = cl_list->next;
923
924 info = tmp_cl->node_list;
925 while (info != NULL) {
926 free_node_info(info);
927
928 tmp_info = info;
929 info = info->next;
930 shm_free(tmp_info);
931 }
932
933 shm_free_all(tmp_cl->capabilities);
934
935 for (br = tmp_cl->bridges; br; br = br_next) {
936 br_next = br->next;
937 shm_free_all(br->dsts);
938 shm_free(br);
939 }
940
941 if (tmp_cl->lock) {
942 lock_destroy(tmp_cl->lock);
943 lock_dealloc(tmp_cl->lock);
944 }
945
946 shm_free(tmp_cl);
947 }
948}
949
950void remove_node_list(cluster_info_t *cl, node_info_t *node)
951{

Callers 3

load_db_infoFunction · 0.85
clusterer_reloadFunction · 0.85
destroyFunction · 0.85

Calls 3

free_node_infoFunction · 0.85
shm_freeFunction · 0.85
lock_destroyFunction · 0.85

Tested by

no test coverage detected