}
OCRepPayload **heplerPayload = OICCalloc(groupIds->length, sizeof(OCRepPayload *));
+ if(NULL == heplerPayload)
+ {
+ OICFree(cbData.context);
+ OCRepPayloadDestroy(payload);
+ OIC_LOG(ERROR, TAG, "Memory Allocation failed!");
+ return OC_STACK_NO_MEMORY;
+ }
for (i = 0; i < groupIds->length; i++)
{
{
OIC_LOG(ERROR, TAG, "OICMalloc returned NULL on csr allocation");
OIC_LOG_V(DEBUG, TAG, "Out %s", __func__);
+ OICFree(buf);
return -1;
}
memcpy(csr->bytes, buf + bufsize - ret, ret * sizeof(uint8_t));
if (NULL == cred->privateData.data)
{
OICFree(b64Buf);
+ DeleteCredList(cred);
return res;
}
#ifndef WITH_ARDUINO
case CT_ADAPTER_TCP:
prefix = (isSecure == true) ? QPREFIX_COAPS_TCP : QPREFIX_COAP_TCP;
+ /*FALLTHROUGH*/
#endif
#endif
case CT_ADAPTER_IP: