openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/dbus/1.12.16-r0/dbus-1.12.16/bus/apparmor.c
static BusAppArmorConfinement* bus_apparmor_confinement_new(char* label,
                                                            const char* mode)
{
    BusAppArmorConfinement* confinement;

    confinement = dbus_new0(BusAppArmorConfinement, 1);
    if (confinement != NULL)
    {
        confinement->refcount = 1;
        confinement->label = label;
        confinement->mode = mode;
    }

    return confinement;
}
/**
 * Callers of this function give up ownership of the *label and *mode
 * pointers.
 *
 * Additionally, the responsibility of freeing *label and *mode becomes the
 * responsibility of the bus_apparmor_confinement_unref() function. However, it
 * does not free *mode because libapparmor's aa_getcon(), and libapparmor's
 * other related functions, allocate a single buffer for *label and *mode and
 * then separate the two char arrays with a NUL char. See the aa_getcon(2) man
 * page for more details.
 */
Callers of this function give up ownership of the *label and *mode
pointers.

Additionally, the responsibility of freeing *label and *mode becomes the
responsibility of the bus_apparmor_confinement_unref() function. However, it
does not free *mode because libapparmor's aa_getcon(), and libapparmor's
other related functions, allocate a single buffer for *label and *mode and
then separate the two char arrays with a NUL char. See the aa_getcon(2) man
page for more details.
Callers of this function give up ownership of the * label and * mode pointers . Additionally the responsibility of freeing * label and * mode becomes the responsibility of the bus_apparmor_confinement_unref () function . However it does not free * mode because libapparmor ' s aa_getcon () and libapparmor ' s other related functions allocate a single buffer for * label and * mode and then separate the two char arrays with a NUL char . See the aa_getcon ( 2 ) man page for more details .
static BusAppArmorConfinement* bus_apparmor_confinement_new(char* label,
                                                            const char* mode)
{
    BusAppArmorConfinement* confinement;
    confinement = dbus_new0(BusAppArmorConfinement, 1);
    if (confinement != NULL)
    {
        confinement->refcount = 1;
        confinement->label = label;
        confinement->mode = mode;
    }
    return confinement;
}
static BusAppArmorConfinement * bus_apparmor_confinement_new ( char * label , const char * mode ) { BusAppArmorConfinement * confinement ; confinement = dbus_new0 ( BusAppArmorConfinement , 1 ) ; if ( confinement != NULL ) { confinement -> refcount = 1 ; confinement -> label = label ; confinement -> mode = mode ; } return confinement ; }
Callers of this function give up ownership of the *label and *mode
 pointers.
Callers of this function give up ownership of the * label and * mode pointers .