src/libmetha/attr.c
void
lm_attrlist_cleanup(attr_list_t *al)
{
    int x;
    if (al->num_attributes) {
        for (x=0; x<al->num_attributes; x++) {
            if (al->list[x].value)
                free(al->list[x].value);
        }
        free(al->list);
    }
}
/** 
 * Free all attribute values and the list 
 **/
Free all attribute values and the list
Free all attribute values and the list
void
lm_attrlist_cleanup(attr_list_t *al)
{
    int x;
    if (al->num_attributes) {
        for (x=0; x<al->num_attributes; x++) {
            if (al->list[x].value)
                free(al->list[x].value);
        }
        free(al->list);
    }
}
void lm_attrlist_cleanup ( attr_list_t * al ) { int x ; if ( al -> num_attributes ) { for ( x = 0 ; x < al -> num_attributes ; x ++ ) { if ( al -> list [ x ] . value ) free ( al -> list [ x ] . value ) ; } free ( al -> list ) ; } }
Free all attribute values and the list
Free all attribute values and the list