From 2378bac0e31fbd346492123e9dd43bb2855960f4 Mon Sep 17 00:00:00 2001 From: PengZheng Date: Sun, 16 Jun 2024 12:34:59 +0800 Subject: [PATCH] [CID 349739]: Release a lock guard manually. --- libs/framework/src/bundle_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/framework/src/bundle_context.c b/libs/framework/src/bundle_context.c index 261e7b36b..4f126101d 100644 --- a/libs/framework/src/bundle_context.c +++ b/libs/framework/src/bundle_context.c @@ -579,7 +579,7 @@ celix_dependency_manager_t* celix_bundleContext_getDependencyManager(bundle_cont if (ctx->mng) { return ctx->mng; } - celixThreadRwlock_unlock(celix_steal_ptr(rlockGuard.lock)); + celixRwlockRlockGuard_deinit(&rlockGuard); celix_auto(celix_rwlock_wlock_guard_t) wlockGuard = celixRwlockWlockGuard_init(&ctx->lock); if (ctx->mng == NULL) {