dt_status_t tzmap_free()

in src/tzmapping.c [187:201]


dt_status_t tzmap_free(tz_aliases_t *aliases)
{
    tz_alias_iterator_t *it = NULL;
    tz_alias_iterator_t *forFree = NULL;
    if (aliases == NULL) {
        return DT_INVALID_ARGUMENT;
    }
    it = aliases->begin.next;
    while ((forFree = it) != NULL) {
        it = it->next;
        free(forFree);
    }
    aliases->begin.next = NULL;
    return DT_OK;
}