void label_remove_boundspairs (label_t * self) { assert (self != NULL); assert (self->arr_bd_list != NULL); delete_slist (self->arr_bd_list); self->arr_bd_list = NULL; }
void delete_label (label_t * self) { if (self != NULL) { delete_slist (self->arr_bd_list); free (self); } }
int delete_slist(SCHED_LIST *l){ int rv = 0; if(l == NULL){ return -1; /* error */ } if(l->next != NULL){ rv = delete_slist(l->next); /* shouldn't be non-negative but check anyway */ } gl_free(l); return rv; }