openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/lib/dlist.c
void dlist_destroy(Dlist* list)
{
    if (list != NULL)
    {
        dlist_start(list);
        dlist_next(list);
        while (dlist_mark(list))
        {
            dlist_delete(list, 1);
        }
        free(list);
    }
}
/*
 * destroy the list freeing all memory
 */
destroy the list freeing all memory
destroy the list freeing all memory
void dlist_destroy(Dlist* list)
{
    if (list != NULL)
    {
        dlist_start(list);
        dlist_next(list);
        while (dlist_mark(list))
        {
            dlist_delete(list, 1);
        }
        free(list);
    }
}
void dlist_destroy ( Dlist * list ) { if ( list != NULL ) { dlist_start ( list ) ; dlist_next ( list ) ; while ( dlist_mark ( list ) ) { dlist_delete ( list , 1 ) ; } free ( list ) ; } }
destroy the list freeing all memory
destroy the list freeing all memory