openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/modules.c
static void moduleDestruct(modInfo_t* pThis)
{
    assert(pThis != NULL);
    free(pThis->pszName);
    free(pThis->cnfName);
    if (pThis->pModHdlr != NULL)
    {
#ifdef VALGRIND
        DBGPRINTF("moduleDestruct: compiled with valgrind, do "
                  "not unload module\n");
#else
        if (glblUnloadModules)
        {
            if (pThis->eKeepType == eMOD_NOKEEP)
            {
                dlclose(pThis->pModHdlr);
            }
        }
        else
        {
            DBGPRINTF("moduleDestruct: not unloading module "
                      "due to user configuration\n");
        }
#endif
    }

    free(pThis);
}
/* Destructs a module object. The object must not be linked to the
 * linked list of modules. Please note that all other dependencies on this
 * modules must have been removed before (e.g. CfSysLineHandlers!)
 */
Destructs a module object. The object must not be linked to the
linked list of modules. Please note that all other dependencies on this
modules must have been removed before
Destructs a module object . The object must not be linked to the linked list of modules . Please note that all other dependencies on this modules must have been removed before
static void moduleDestruct(modInfo_t* pThis)
{
    assert(pThis != NULL);
    free(pThis->pszName);
    free(pThis->cnfName);
    if (pThis->pModHdlr != NULL)
    {
#ifdef VALGRIND
        DBGPRINTF("moduleDestruct: compiled with valgrind, do "
                  "not unload module\n");
#else
        if (glblUnloadModules)
        {
            if (pThis->eKeepType == eMOD_NOKEEP)
            {
                dlclose(pThis->pModHdlr);
            }
        }
        else
        {
            DBGPRINTF("moduleDestruct: not unloading module "
                      "due to user configuration\n");
        }
#endif
    }
    free(pThis);
}
static void moduleDestruct ( modInfo_t * pThis ) { assert ( pThis != NULL ) ; free ( pThis -> pszName ) ; free ( pThis -> cnfName ) ; if ( pThis -> pModHdlr != NULL ) { #ifdef VALGRIND DBGPRINTF ( " " " \n " ) ; #else if ( glblUnloadModules ) { if ( pThis -> eKeepType == eMOD_NOKEEP ) { dlclose ( pThis -> pModHdlr ) ; } } else { DBGPRINTF ( " " " \n " ) ; } #endif } free ( pThis ) ; }
Destructs a module object.
Destructs a module object .