r = deviceInfoBuffer.SetArray(reinterpret_cast <byte*>(pDeviceInfo), 0, deviceInfo.GetLength());
SysTryCatch(NID_SEC, r == E_SUCCESS, , r, "[%s] A system error has occurred.", GetErrorMessage(r));
deviceInfoBuffer.Flip();
- delete[] pDeviceInfo;
for (int i = 0; i < count; i++)
{
CATCH:
SetLastResult(r);
+ delete[] pDeviceInfo;
delete pTempInfoBuffer;
return pKey.release();
r = deviceInfoBuffer.SetArray(reinterpret_cast <byte*>(pDeviceInfo), 0, deviceInfo.GetLength());
SysTryCatch(NID_SEC, r == E_SUCCESS, , r, "[%s] A system error has occurred.", GetErrorMessage(r));
deviceInfoBuffer.Flip();
- delete[] pDeviceInfo;
pHmacKey.reset(StringUtil::StringToUtf8N(appId));
CATCH:
SetLastResult(r);
+ delete[] pDeviceInfo;
delete pTempInfoBuffer;
return pKey.release();