Change-Id: Ic53ae0759020fa26f5f70425d3dab09ff5e7d375
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17167
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: jaehyun Cho <jaehyun3.cho@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
OIC_LOG(DEBUG, TAG, "retransmission context destroy..");
+ ca_mutex_lock(context->threadMutex);
+ uint32_t len = u_arraylist_length(context->dataList);
+ for (uint32_t i = 0; i < len; i++)
+ {
+ CARetransmissionData_t *data = u_arraylist_get(context->dataList, i);
+ if (NULL == data)
+ {
+ continue;
+ }
+ CAFreeEndpoint(data->endpoint);
+ OICFree(data->pdu);
+ }
+ ca_mutex_unlock(context->threadMutex);
ca_mutex_free(context->threadMutex);
context->threadMutex = NULL;
ca_cond_free(context->threadCond);
{
dataModelVersion = OCCreateOCStringLL(OC_DATA_MODEL_VERSION);
VERIFY_SUCCESS(OCSetPropertyValue(PAYLOAD_TYPE_DEVICE, OC_RSRVD_DATA_MODEL_VERSION, dataModelVersion));
+ OCFreeOCStringLL(dataModelVersion);
}
OIC_LOG(INFO, TAG, "Device parameter initialized successfully.");
return OC_STACK_OK;