* Release the memory consumed by the specified feature * set. This routine also frees the memory consumed by the * features contained in the set. * @param FeatureSet set of features to be freed * @return none * @note History: Mon May 21 13:59:46 1990, DSJ, Created. */
| 75 | * @note History: Mon May 21 13:59:46 1990, DSJ, Created. |
| 76 | */ |
| 77 | void FreeFeatureSet(FEATURE_SET FeatureSet) { |
| 78 | int i; |
| 79 | |
| 80 | if (FeatureSet) { |
| 81 | for (i = 0; i < FeatureSet->NumFeatures; i++) |
| 82 | FreeFeature(FeatureSet->Features[i]); |
| 83 | memfree(FeatureSet); |
| 84 | } |
| 85 | } /* FreeFeatureSet */ |
| 86 | |
| 87 | /** |
| 88 | * Allocate and return a new feature of the specified |
no test coverage detected