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

Function free_node_info

modules/clusterer/node_info.c:891–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891void free_node_info(node_info_t *info)
892{
893 struct remote_cap *cap, *tmp_cap;
894
895 if (info->url.s)
896 shm_free(info->url.s);
897 if (info->sip_addr.s)
898 shm_free(info->sip_addr.s);
899 if (info->description.s)
900 shm_free(info->description.s);
901 if (info->lock) {
902 lock_destroy(info->lock);
903 lock_dealloc(info->lock);
904 }
905
906 cap = info->capabilities;
907 while (cap != NULL) {
908 tmp_cap = cap;
909 cap = cap->next;
910 shm_free(tmp_cap);
911 }
912}
913
914void free_info(cluster_info_t *cl_list)
915{

Callers 2

free_infoFunction · 0.85
remove_node_listFunction · 0.85

Calls 2

shm_freeFunction · 0.85
lock_destroyFunction · 0.85

Tested by

no test coverage detected