From 2481cf3f820518f5721b21fafbce5a90e43cc67f Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Thu, 27 Jul 2017 17:20:24 +0530 Subject: KW Warning Fixes CRs-Fixed: 2082072 Change-Id: I1189acd521d4e4cea3b8a9545a5486f29caaa0fe --- location/LocationAPIClientBase.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'location/LocationAPIClientBase.cpp') 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; } -- cgit v1.2.3