Change-Id: Iee01565d5aab088c597f43f7bad463ab11553e41
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17075
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
OIC_LOG(ERROR, TAG, "CALERemoveAllDeviceState has failed");
}
OIC_LOG(ERROR, TAG, "CALERemoveAllDeviceState has failed");
}
+ oc_mutex_lock(g_deviceStateListMutex);
+ OICFree(g_deviceStateList);
+ g_deviceStateList = NULL;
+ oc_mutex_unlock(g_deviceStateListMutex);
+
ret = CALEClientRemoveAllScanDevices(env);
if (CA_STATUS_OK != ret)
{
ret = CALEClientRemoveAllScanDevices(env);
if (CA_STATUS_OK != ret)
{
oc_mutex_free(g_threadScanIntervalMutex);
g_threadScanIntervalMutex = NULL;
oc_mutex_free(g_threadScanIntervalMutex);
g_threadScanIntervalMutex = NULL;
+
+ oc_mutex_free(g_gattObjectMutex);
+ g_gattObjectMutex = NULL;
+
+ oc_mutex_free(g_deviceStateListMutex);
+ g_deviceStateListMutex = NULL;
}
void CALEClientSetSendFinishFlag(bool flag)
}
void CALEClientSetSendFinishFlag(bool flag)
- OICFree(deviceList);
- deviceList = NULL;
oc_mutex_unlock(deviceListMutex);
return CA_STATUS_OK;
oc_mutex_unlock(deviceListMutex);
return CA_STATUS_OK;