src/bus/name.c
/**
 * name_snapshot_free() - free a name snapshot
 * @snapshot:           object to free
 *
 * This releases all the resources and frees the snapshot.
 *
 * Return: NULL is returned.
 */
free a name snapshot
@snapshot:           object to free

This releases all the resources and frees the snapshot.

NULL is returned.
free a name snapshot @snapshot : object to free This releases all the resources and frees the snapshot . NULL is returned .
NameSnapshot *name_snapshot_free(NameSnapshot *snapshot) {
        if (!snapshot)
                return NULL;
        for (size_t i = 0; i < snapshot->n_names; ++i)
                name_unref(snapshot->names[i]);
        free(snapshot);
        return NULL;
}
NameSnapshot * name_snapshot_free ( NameSnapshot * snapshot ) { if ( ! snapshot ) return NULL ; for ( size_t i = 0 ; i < snapshot -> n_names ; ++ i ) name_unref ( snapshot -> names [ i ] ) ; free ( snapshot ) ; return NULL ; }
name_snapshot_free() - free a name snapshot
 @snapshot:           object to free
name_snapshot_free () - free a name snapshot @snapshot : object to free