openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libsmartcols/src/table.c
void scols_unref_table(struct libscols_table* tb)
{
    if (tb && (--tb->refcount <= 0))
    {
        DBG(TAB, ul_debugobj(tb, "dealloc"));
        scols_table_remove_lines(tb);
        scols_table_remove_columns(tb);
        scols_unref_symbols(tb->symbols);
        scols_reset_cell(&tb->title);
        free(tb->linesep);
        free(tb->colsep);
        free(tb->name);
        free(tb);
    }
}
/**
 * scols_unref_table:
 * @tb: a pointer to a struct libscols_table instance
 *
 * Decreases the refcount of @tb. When the count falls to zero, the instance
 * is automatically deallocated.
 */
@tb: a pointer to a struct libscols_table instance

Decreases the refcount of @tb. When the count falls to zero, the instance
is automatically deallocated.
@tb : a pointer to a struct libscols_table instance Decreases the refcount of @tb . When the count falls to zero the instance is automatically deallocated .
void scols_unref_table(struct libscols_table* tb)
{
    if (tb && (--tb->refcount <= 0))
    {
        DBG(TAB, ul_debugobj(tb, "dealloc"));
        scols_table_remove_lines(tb);
        scols_table_remove_columns(tb);
        scols_unref_symbols(tb->symbols);
        scols_reset_cell(&tb->title);
        free(tb->linesep);
        free(tb->colsep);
        free(tb->name);
        free(tb);
    }
}
void scols_unref_table ( struct libscols_table * tb ) { if ( tb && ( -- tb -> refcount <= 0 ) ) { DBG ( TAB , ul_debugobj ( tb , " " ) ) ; scols_table_remove_lines ( tb ) ; scols_table_remove_columns ( tb ) ; scols_unref_symbols ( tb -> symbols ) ; scols_reset_cell ( & tb -> title ) ; free ( tb -> linesep ) ; free ( tb -> colsep ) ; free ( tb -> name ) ; free ( tb ) ; } }
scols_unref_table:
 @tb: a pointer to a struct libscols_table instance
scols_unref_table : @tb : a pointer to a struct libscols_table instance