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/line.c
void scols_line_free_cells(struct libscols_line* ln)
{
    size_t i;

    if (!ln || !ln->cells)
        return;

    DBG(LINE, ul_debugobj(ln, "free cells"));

    for (i = 0; i < ln->ncells; i++)
        scols_reset_cell(&ln->cells[i]);

    free(ln->cells);
    ln->ncells = 0;
    ln->cells = NULL;
}
/**
 * scols_line_free_cells:
 * @ln: a pointer to a struct libscols_line instance
 *
 * Frees the allocated cells referenced to by @ln.
 */
@ln: a pointer to a struct libscols_line instance

Frees the allocated cells referenced to by @ln.
@ln : a pointer to a struct libscols_line instance Frees the allocated cells referenced to by @ln .
void scols_line_free_cells(struct libscols_line* ln)
{
    size_t i;
    if (!ln || !ln->cells)
        return;
    DBG(LINE, ul_debugobj(ln, "free cells"));
    for (i = 0; i < ln->ncells; i++)
        scols_reset_cell(&ln->cells[i]);
    free(ln->cells);
    ln->ncells = 0;
    ln->cells = NULL;
}
void scols_line_free_cells ( struct libscols_line * ln ) { size_t i ; if ( ! ln || ! ln -> cells ) return ; DBG ( LINE , ul_debugobj ( ln , " " ) ) ; for ( i = 0 ; i < ln -> ncells ; i ++ ) scols_reset_cell ( & ln -> cells [ i ] ) ; free ( ln -> cells ) ; ln -> ncells = 0 ; ln -> cells = NULL ; }
scols_line_free_cells:
 @ln: a pointer to a struct libscols_line instance
scols_line_free_cells : @ln : a pointer to a struct libscols_line instance