| 1113 | } |
| 1114 | |
| 1115 | static void freeClusterNodes() { |
| 1116 | int i = 0; |
| 1117 | for (; i < config.cluster_node_count; i++) { |
| 1118 | clusterNode *n = config.cluster_nodes[i]; |
| 1119 | if (n) freeClusterNode(n); |
| 1120 | } |
| 1121 | zfree(config.cluster_nodes); |
| 1122 | config.cluster_nodes = NULL; |
| 1123 | } |
| 1124 | |
| 1125 | static clusterNode **addClusterNode(clusterNode *node) { |
| 1126 | int count = config.cluster_node_count + 1; |
no test coverage detected