From: omkar Date: Tue, 13 Jan 2015 23:57:12 +0000 (-0800) Subject: Changing Malloc call in CA OCDoResource. X-Git-Tag: 1.2.0+RC1~1855^2~280^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ab5be1d298f5f9fc94f6d62771a1779c8622605;p=platform%2Fupstream%2Fiotivity.git Changing Malloc call in CA OCDoResource. 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 --- diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c index cd4ea07..d34369d 100644 --- a/resource/csdk/stack/src/ocstack.c +++ b/resource/csdk/stack/src/ocstack.c @@ -1658,7 +1658,7 @@ OCStackResult OCDoResource(OCDoHandle *handle, OCMethod method, const char *requ { 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);