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/sysfs_attr.c
void sysfs_close_attribute(struct sysfs_attribute* sysattr)
{
    if (sysattr)
    {
        if (sysattr->value)
            free(sysattr->value);
        free(sysattr);
    }
}
/**
 * sysfs_close_attribute: closes and cleans up attribute
 * @sysattr: attribute to close.
 */
closes and cleans up attribute
@sysattr: attribute to close.
closes and cleans up attribute @sysattr : attribute to close .
void sysfs_close_attribute(struct sysfs_attribute* sysattr)
{
    if (sysattr)
    {
        if (sysattr->value)
            free(sysattr->value);
        free(sysattr);
    }
}
void sysfs_close_attribute ( struct sysfs_attribute * sysattr ) { if ( sysattr ) { if ( sysattr -> value ) free ( sysattr -> value ) ; free ( sysattr ) ; } }
sysfs_close_attribute: closes and cleans up attribute
 @sysattr: attribute to close.
sysfs_close_attribute : closes and cleans up attribute @sysattr : attribute to close .