| 889 | } |
| 890 | |
| 891 | void 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 | |
| 914 | void free_info(cluster_info_t *cl_list) |
| 915 | { |
no test coverage detected