/*
    Use UF_free to deallocate memory for this function.
    For example, notice the use of UF_free in the following code fragment.
*/

int i, count;
tag_t body_id;
UF_MODL_features_p_t *features_node;

UF_MODL_ask_body_features ( body_id,
                                                       &count,
                                                       &features_node);

/* Free structure */
if (count)
{
     for (i = 0; i < count; i++)
     {
          UF_free (features_node[i]->feat_tags);
          UF_free(features_node[i]);
      }

     UF_free(features_node);
}