SysTryReturnResult(NID_SEC, ret == PRVMGR_ERR_NONE, E_SYSTEM, "An unexpected system error occurred.");
__privilegeList.Add((new String(*pTempString)), (new String(pPrivilegeLevel)));
+ if (pPrivilegeLevel != null)
+ {
+ free(pPrivilegeLevel);
+ }
}
return r;
SysTryReturnResult(NID_SEC, ret == PRVMGR_ERR_NONE, E_SYSTEM, "An unexpected system error occurred.");
__privilegeList.Add((new String(*pTempString)), (new String(pPrivilegeLevel)));
+ if (pPrivilegeLevel != null)
+ {
+ free(pPrivilegeLevel);
+ }
}
return r;
SysTryReturnResult(NID_SEC, ret == PRVMGR_ERR_NONE, E_SYSTEM, "An unexpected system error occurred.");
__privilegeList.Add((new String(*pTempString)), (new String(pPrivilegeLevel)));
+ if (pPrivilegeLevel != null)
+ {
+ free(pPrivilegeLevel);
+ }
}
return r;
ByteBuffer input;
std::unique_ptr<IHash> pHash(null);
std::unique_ptr<ByteBuffer> pChecksumByteBuffer(null);
- std::unique_ptr<char> pAppId(null);
+ std::unique_ptr<char[]> pAppId(null);
SysTryReturnResult(NID_SEC, length <= MAX_BITWISE_PRIV_SIZE, E_INVALID_ARG, "The privilege information of %ls is invalid.", appId.GetPointer());