Previously we were using OICMalloc() to allocate memory to copy the URI
when sending request over multiple interfaces.
During testing, I observed OICMalloc failed in some cases.
Changing the call to OCMalloc instead.
Change-Id: I88ab434d78b3525f6053363fdab7d1d59d8823ed
Signed-off-by: omkar <omkar.m.hegde@intel.com>
{
grpEnd.connectivityType = caConType;
- grpEnd.resourceUri = (CAURI_t) OICMalloc(uriLen + 1);
+ grpEnd.resourceUri = (CAURI_t) OCMalloc(uriLen + 1);
strncpy(grpEnd.resourceUri, requiredUri, (uriLen + 1));
caResult = CASendRequestToAll(&grpEnd, &requestInfo);