void fch_buckets_destroy(fch_buckets_t * buckets) { cmph_uint32 i; for (i = 0; i < buckets->nbuckets; i++) fch_bucket_destroy(buckets->values + i); free(buckets->values); free(buckets); }
void fch_buckets_destroy(fch_buckets_t * buckets, cmph_config_t *mph) { cmph_uint32 i; for (i = 0; i < buckets->nbuckets; i++) fch_bucket_destroy(buckets->values + i, mph); free(buckets->values); free(buckets); }