This is an automated email from the ASF dual-hosted git repository. pengzheng pushed a commit to branch feature/coverity-fixes in repository https://gitbox.apache.org/repos/asf/celix.git
commit a970341e96daf001e2f410192a93768b2a07a839 Author: PengZheng <[email protected]> AuthorDate: Thu Nov 23 15:17:36 2023 +0800 [CID 331870]Fix resource leak. --- 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 1b64a7da..0dd6eaca 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);
