celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject celix git commit: CELIX-272: unlock lock before destroy
Date Fri, 20 Nov 2015 14:09:34 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 1329aeb77 -> 0b216aed6


CELIX-272: unlock lock before destroy


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/0b216aed
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/0b216aed
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/0b216aed

Branch: refs/heads/develop
Commit: 0b216aed64b6abf62b725fe62b3b6fa1a1aac446
Parents: 1329aeb
Author: Bjoern Petri <bpetri@apache.org>
Authored: Fri Nov 20 15:07:34 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Fri Nov 20 15:07:34 2015 +0100

----------------------------------------------------------------------
 framework/private/src/service_reference.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/0b216aed/framework/private/src/service_reference.c
----------------------------------------------------------------------
diff --git a/framework/private/src/service_reference.c b/framework/private/src/service_reference.c
index 0916a37..9fbee9e 100644
--- a/framework/private/src/service_reference.c
+++ b/framework/private/src/service_reference.c
@@ -82,6 +82,7 @@ celix_status_t serviceReference_release(service_reference_pt ref, bool *out)
{
         if (ref->registration != NULL) {
             serviceRegistration_release(ref->registration);
         }
+        celixThreadRwlock_unlock(&ref->lock);
         serviceReference_destroy(ref);
         destroyed = true;
     } else {


Mime
View raw message