| 1098 | } |
| 1099 | |
| 1100 | static void freeClusterNodes() { |
| 1101 | int i = 0; |
| 1102 | for (; i < config.cluster_node_count; i++) { |
| 1103 | clusterNode *n = config.cluster_nodes[i]; |
| 1104 | if (n) freeClusterNode(n); |
| 1105 | } |
| 1106 | zfree(config.cluster_nodes); |
| 1107 | config.cluster_nodes = NULL; |
| 1108 | } |
| 1109 | |
| 1110 | static clusterNode **addClusterNode(clusterNode *node) { |
| 1111 | int count = config.cluster_node_count + 1; |
no test coverage detected