exit:
if(motCtx)
{
+ PMDeleteDeviceList(motCtx->selectedDeviceInfo);
OICFree(motCtx->ctxResultArray);
OICFree(motCtx);
}
//If POST request successfully sent, motCtx will be cleaned from response handler.
if(freeFlag && motCtx)
{
+ PMDeleteDeviceList(motCtx->selectedDeviceInfo);
OICFree(motCtx->ctxResultArray);
OICFree(motCtx);
}
- if (localTargetDeviceInfo)
- {
- PMDeleteDeviceList(localTargetDeviceInfo);
- }
-
return postMomRes;
}
//If POST request successfully sent, motCtx will be cleaned from response handler.
if(freeFlag && motCtx)
{
+ PMDeleteDeviceList(motCtx->selectedDeviceInfo);
OICFree(motCtx->ctxResultArray);
OICFree(motCtx);
}
+
if(pinCred)
{
OICFree(pinCred->privateData.data);
OICFree(pinCred);
}
- if (localTargetDeviceInfo)
- {
- PMDeleteDeviceList(localTargetDeviceInfo);
- }
-
return postCredRes;
}