You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pe...@apache.org on 2023/12/01 12:29:26 UTC
(celix) 03/11: [CID 331870]Fix resource leak.
This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch support/2.4
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 243228137c80b97c620cf12e3817fe5843457e37
Author: PengZheng <ho...@gmail.com>
AuthorDate: Thu Nov 23 15:17:36 2023 +0800
[CID 331870]Fix resource leak.
(cherry picked from commit a970341e96daf001e2f410192a93768b2a07a839)
---
libs/framework/src/service_registry.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/framework/src/service_registry.c b/libs/framework/src/service_registry.c
index ed4e8664..340a85cb 100644
--- a/libs/framework/src/service_registry.c
+++ b/libs/framework/src/service_registry.c
@@ -82,7 +82,7 @@ celix_service_registry_t* celix_serviceRegistry_create(framework_pt framework) {
}
void celix_serviceRegistry_destroy(celix_service_registry_t* registry) {
- celixThreadRwlock_writeLock(®istry->lock);
+ celixThreadRwlock_destroy(®istry->lock);
//remove service listeners
int size = celix_arrayList_size(registry->serviceListeners);