openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/mtd-utils/2.1.0+AUTOINC+b5027be5f4-r0/git/ubifs-utils/mkfs.ubifs/devtable.c
void free_devtable_info(void)
{
    struct hashtable_itr* ph_itr;
    struct path_htbl_element* ph_elt;

    if (!path_htbl)
        return;

    if (hashtable_count(path_htbl) > 0)
    {
        ph_itr = hashtable_iterator(path_htbl);
        do
        {
            ph_elt = hashtable_iterator_value(ph_itr);
            /*
             * Note, since we use the same string for the key and
             * @name in the name hash table elements, we do not
             * have to iterate name hash table because @name memory
             * will be freed when freeing the key.
             */
            hashtable_destroy(ph_elt->name_htbl, 1);
        } while (hashtable_iterator_advance(ph_itr));
    }
    hashtable_destroy(path_htbl, 1);
}
/**
 * free_devtable_info - free device table information.
 *
 * This function frees the path hash table and the name hash tables.
 */
free device table information.
This function frees the path hash table and the name hash tables.
free device table information . This function frees the path hash table and the name hash tables .
void free_devtable_info(void)
{
    struct hashtable_itr* ph_itr;
    struct path_htbl_element* ph_elt;
    if (!path_htbl)
        return;
    if (hashtable_count(path_htbl) > 0)
    {
        ph_itr = hashtable_iterator(path_htbl);
        do
        {
            ph_elt = hashtable_iterator_value(ph_itr);
            hashtable_destroy(ph_elt->name_htbl, 1);
        } while (hashtable_iterator_advance(ph_itr));
    }
    hashtable_destroy(path_htbl, 1);
}
void free_devtable_info ( void ) { struct hashtable_itr * ph_itr ; struct path_htbl_element * ph_elt ; if ( ! path_htbl ) return ; if ( hashtable_count ( path_htbl ) > 0 ) { ph_itr = hashtable_iterator ( path_htbl ) ; do { ph_elt = hashtable_iterator_value ( ph_itr ) ; hashtable_destroy ( ph_elt -> name_htbl , 1 ) ; } while ( hashtable_iterator_advance ( ph_itr ) ) ; } hashtable_destroy ( path_htbl , 1 ) ; }
free_devtable_info - free device table information.
free_devtable_info - free device table information .
/*
             * Note, since we use the same string for the key and
             * @name in the name hash table elements, we do not
             * have to iterate name hash table because @name memory
             * will be freed when freeing the key.
             */