diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-07-28 06:09:40 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-28 06:09:40 -0700 |
commit | 0c6ed3c02457e1a77b6221191c3dfb89574742ba (patch) | |
tree | 6018848c3b4b10cb36225ac7a6e504adc325be48 /location/LocationAPIClientBase.cpp | |
parent | 928e3eca596b22c4d4d2555c39fbe4c223cb708e (diff) | |
parent | 2481cf3f820518f5721b21fafbce5a90e43cc67f (diff) | |
download | gps-0c6ed3c02457e1a77b6221191c3dfb89574742ba.tar.gz |
Merge "KW Warning Fixes"
Diffstat (limited to 'location/LocationAPIClientBase.cpp')
-rw-r--r-- | location/LocationAPIClientBase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/location/LocationAPIClientBase.cpp b/location/LocationAPIClientBase.cpp index 465b76d..d8eae3f 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; } |