* This routine frees the memory consumed by the specified * cluster and all of its subclusters. This is done by * recursive calls to FreeCluster(). * * @param Cluster pointer to cluster to be freed * * @return None * * @note Exceptions: None * @note History: 6/6/89, DSJ, Created. */
| 2187 | * @note History: 6/6/89, DSJ, Created. |
| 2188 | */ |
| 2189 | void FreeCluster(CLUSTER *Cluster) { |
| 2190 | if (Cluster != NULL) { |
| 2191 | FreeCluster (Cluster->Left); |
| 2192 | FreeCluster (Cluster->Right); |
| 2193 | memfree(Cluster); |
| 2194 | } |
| 2195 | } // FreeCluster |
| 2196 | |
| 2197 | /** |
| 2198 | * This routine computes the degrees of freedom that should |
no test coverage detected