This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch hotfix/coverity_fix
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 9128806d26fbf4449b5d48f9530abe6a69f1565d
Author: PengZheng <[email protected]>
AuthorDate: Mon Apr 10 13:47:59 2023 +0800

    Fix missing unlock (CID=313585).
---
 libs/framework/src/celix_bundle_cache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/framework/src/celix_bundle_cache.c 
b/libs/framework/src/celix_bundle_cache.c
index a0f59271..d4a7941c 100644
--- a/libs/framework/src/celix_bundle_cache.c
+++ b/libs/framework/src/celix_bundle_cache.c
@@ -226,6 +226,7 @@ static void 
celix_bundleCache_updateIdForLocationLookupMap(celix_framework_t* fw
     DIR* dir = opendir(fw->cache->cacheDir);
     if (dir == NULL) {
         fw_logCode(fw->logger, CELIX_LOG_LEVEL_ERROR, CELIX_BUNDLE_EXCEPTION, 
"Cannot open bundle cache directory %s", fw->cache->cacheDir);
+        celixThreadMutex_unlock(&fw->cache->mutex);
         return;
     }
     char archiveRootBuffer[CELIX_DEFAULT_STRING_CREATE_BUFFER_SIZE];

Reply via email to