summaryrefslogtreecommitdiff
path: root/location/LocationAPIClientBase.cpp
diff options
context:
space:
mode:
authorSaurabh Srivastava <ssrivast@codeaurora.org>2017-07-27 17:20:24 +0530
committerSaurabh Srivastava <ssrivast@codeaurora.org>2017-07-27 17:21:31 +0530
commit2481cf3f820518f5721b21fafbce5a90e43cc67f (patch)
tree616e3a84aee62a21be9edac22bd8bcbac7dd21fa /location/LocationAPIClientBase.cpp
parenta7094b12790d024d0172d47590ef01197a837508 (diff)
downloadgps-2481cf3f820518f5721b21fafbce5a90e43cc67f.tar.gz
KW Warning Fixes
CRs-Fixed: 2082072 Change-Id: I1189acd521d4e4cea3b8a9545a5486f29caaa0fe
Diffstat (limited to 'location/LocationAPIClientBase.cpp')
-rw-r--r--location/LocationAPIClientBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/location/LocationAPIClientBase.cpp b/location/LocationAPIClientBase.cpp
index 4d50119..f8a05aa 100644
--- a/location/LocationAPIClientBase.cpp
+++ b/location/LocationAPIClientBase.cpp
@@ -600,6 +600,7 @@ void LocationAPIClientBase::locAPIRemoveGeofences(size_t count, uint32_t* ids)
if (sessions == NULL) {
LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
+ pthread_mutex_unlock(&mMutex);
return;
}
@@ -634,6 +635,7 @@ void LocationAPIClientBase::locAPIModifyGeofences(
if (sessions == NULL) {
LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
+ pthread_mutex_unlock(&mMutex);
return;
}
@@ -668,6 +670,7 @@ void LocationAPIClientBase::locAPIPauseGeofences(size_t count, uint32_t* ids)
if (sessions == NULL) {
LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
+ pthread_mutex_unlock(&mMutex);
return;
}
@@ -702,6 +705,7 @@ void LocationAPIClientBase::locAPIResumeGeofences(
if (sessions == NULL) {
LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
+ pthread_mutex_unlock(&mMutex);
return;
}
@@ -740,6 +744,7 @@ void LocationAPIClientBase::locAPIRemoveAllGeofences()
if (sessions == NULL) {
LOC_LOGE("%s:%d] Failed to allocate %d bytes !",
__FUNCTION__, __LINE__, sizeof(uint32_t) * count);
+ pthread_mutex_unlock(&mMutex);
return;
}