本文整理汇总了C++中LwFreeMemory函数的典型用法代码示例。如果您正苦于以下问题:C++ LwFreeMemory函数的具体用法?C++ LwFreeMemory怎么用?C++ LwFreeMemory使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LwFreeMemory函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LsaFreeConsoleLogInfo
VOID
LsaFreeConsoleLogInfo(
PLSA_CONSOLE_LOG pConsoleLog
)
{
LwFreeMemory(pConsoleLog);
}
示例2: FreeLWIUser
void
FreeLWIUser(PLWIUSER pLWIUser)
{
if (pLWIUser)
{
if (pLWIUser->pw_name)
LW_SAFE_FREE_STRING(pLWIUser->pw_name);
if (pLWIUser->pw_display_name)
LW_SAFE_FREE_STRING(pLWIUser->pw_display_name);
if (pLWIUser->pw_name_as_queried)
LW_SAFE_FREE_STRING(pLWIUser->pw_name_as_queried);
if (pLWIUser->pw_passwd)
LW_SAFE_FREE_STRING(pLWIUser->pw_passwd);
if (pLWIUser->pw_class)
LW_SAFE_FREE_STRING(pLWIUser->pw_class);
if (pLWIUser->pw_gecos)
LW_SAFE_FREE_STRING(pLWIUser->pw_gecos);
if (pLWIUser->pw_nfs_home_dir)
LW_SAFE_FREE_STRING(pLWIUser->pw_nfs_home_dir);
if (pLWIUser->pw_home_dir)
LW_SAFE_FREE_STRING(pLWIUser->pw_home_dir);
if (pLWIUser->pw_orig_home_dir)
LW_SAFE_FREE_STRING(pLWIUser->pw_orig_home_dir);
if (pLWIUser->pw_orig_nfs_home_dir)
LW_SAFE_FREE_STRING(pLWIUser->pw_orig_nfs_home_dir);
if (pLWIUser->pw_shell)
LW_SAFE_FREE_STRING(pLWIUser->pw_shell);
if (pLWIUser->pMCXValues)
FreeMCXValueList(pLWIUser->pMCXValues);
if (pLWIUser->padUserInfo)
FreeADUserInfo(pLWIUser->padUserInfo);
LwFreeMemory(pLWIUser);
}
}
示例3: AD_GroupExpansionDataDestroy
VOID
AD_GroupExpansionDataDestroy(
IN OUT PLSA_AD_GROUP_EXPANSION_DATA pExpansionData
)
{
if (pExpansionData)
{
if (pExpansionData->pGroupsToExpand)
{
pExpansionData->pGroupsToExpand->fnFree = AD_FreeHashObject;
}
if (pExpansionData->pExpandedGroups)
{
pExpansionData->pExpandedGroups->fnFree = AD_FreeHashObject;
}
if (pExpansionData->pUsers)
{
pExpansionData->pUsers->fnFree = AD_FreeHashObject;
}
LwHashSafeFree(&pExpansionData->pGroupsToExpand);
LwHashSafeFree(&pExpansionData->pExpandedGroups);
LwHashSafeFree(&pExpansionData->pUsers);
LwFreeMemory(pExpansionData);
}
}
示例4: LsaFreeStatus
VOID
LsaFreeStatus(
PLSASTATUS pLsaStatus
)
{
DWORD iCount = 0;
for (iCount = 0; iCount < pLsaStatus->dwCount; iCount++)
{
PLSA_AUTH_PROVIDER_STATUS pStatus =
&pLsaStatus->pAuthProviderStatusList[iCount];
LW_SAFE_FREE_STRING(pStatus->pszId);
LW_SAFE_FREE_STRING(pStatus->pszDomain);
LW_SAFE_FREE_STRING(pStatus->pszForest);
LW_SAFE_FREE_STRING(pStatus->pszSite);
LW_SAFE_FREE_STRING(pStatus->pszCell);
if (pStatus->pTrustedDomainInfoArray)
{
LsaFreeDomainInfoArray(
pStatus->dwNumTrustedDomains,
pStatus->pTrustedDomainInfoArray);
}
}
LW_SAFE_FREE_MEMORY(pLsaStatus->pAuthProviderStatusList);
LwFreeMemory(pLsaStatus);
}
示例5: LsaDataBlobFree
VOID
LsaDataBlobFree(
PLSA_DATA_BLOB *ppBlob
)
{
if (ppBlob && *ppBlob)
{
if ((*ppBlob)->pData)
{
LwFreeMemory((*ppBlob)->pData);
}
LwFreeMemory(*ppBlob);
*ppBlob = NULL;
}
}
示例6: LwTaskQueueFree
VOID
LwTaskQueueFree(
PLW_TASK_QUEUE pQueue
)
{
LwFreeMemory(pQueue);
}
示例7: LwTaskFreeConsoleLogInfo
VOID
LwTaskFreeConsoleLogInfo(
PLW_TASK_CONSOLE_LOG pConsoleLog
)
{
LwFreeMemory(pConsoleLog);
}
示例8: LwSmTableFreeEntry
static
VOID
LwSmTableFreeEntry(
PSM_TABLE_ENTRY pEntry
)
{
if (pEntry->pVtbl)
{
pEntry->pVtbl->pfnDestruct(&pEntry->object);
}
if (pEntry->pInfo)
{
LwSmCommonFreeServiceInfo(pEntry->pInfo);
}
if (pEntry->pLock)
{
pthread_mutex_destroy(pEntry->pLock);
}
if (pEntry->pEvent)
{
pthread_cond_destroy(pEntry->pEvent);
}
LwFreeMemory(pEntry);
}
示例9: LwTaskFreeCreds
VOID
LwTaskFreeCreds(
PLW_TASK_CREDS pCreds /* IN OUT */
)
{
if (pCreds->pKrb5Creds != NULL)
{
LwIoDeleteCreds(pCreds->pKrb5Creds);
}
if (pCreds->pszRestoreCache)
{
LwKrb5SetDefaultCachePath(pCreds->pszRestoreCache, NULL);
LwFreeString(pCreds->pszRestoreCache);
}
if (pCreds->ctx != NULL)
{
if (pCreds->cc != NULL)
{
krb5_cc_destroy(pCreds->ctx, pCreds->cc);
}
krb5_free_context(pCreds->ctx);
}
LwFreeMemory(pCreds);
}
示例10: LsaEndEnumGroups
LSASS_API
DWORD
LsaEndEnumGroups(
HANDLE hLsaConnection,
HANDLE hResume
)
{
DWORD dwError = 0;
PLSA_CLIENT_ENUM_GROUPS_HANDLE pEnum = hResume;
if (pEnum)
{
if (pEnum->hEnum)
{
dwError = LsaCloseEnum(hLsaConnection, pEnum->hEnum);
}
if (pEnum->ppObjects)
{
LsaUtilFreeSecurityObjectList(pEnum->dwObjectCount, pEnum->ppObjects);
}
LwFreeMemory(pEnum);
}
return dwError;
}
示例11: LwTaskFreeLogInfo
VOID
LwTaskFreeLogInfo(
PLW_TASK_LOG_INFO pLogInfo
)
{
LW_SAFE_FREE_STRING(pLogInfo->pszPath);
LwFreeMemory(pLogInfo);
}
示例12: LsaFreeEnumObjectsInfo
VOID
LsaFreeEnumObjectsInfo(
PLSA_ENUM_OBJECTS_INFO pInfo
)
{
LW_SAFE_FREE_STRING(pInfo->pszGUID);
LwFreeMemory(pInfo);
}
示例13: LsaPamFreeConfig
VOID
LsaPamFreeConfig(
PLSA_PAM_CONFIG pConfig
)
{
LsaPamFreeConfigContents(pConfig);
LwFreeMemory(pConfig);
}
示例14: LocalCfgFree
VOID
LocalCfgFree(
PLOCAL_CONFIG pConfig
)
{
LocalCfgFreeContents(pConfig);
LwFreeMemory(pConfig);
}
示例15: ADProviderFreeCellInfo
VOID
ADProviderFreeCellInfo(
IN OUT PAD_LINKED_CELL_INFO pCell
)
{
LW_SAFE_FREE_STRING(pCell->pszCellDN);
LW_SAFE_FREE_STRING(pCell->pszDomain);
LwFreeMemory(pCell);
}