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: prevent destroy of locked lock
Date Wed, 18 Nov 2015 13:02:39 GMT
Repository: celix
Updated Branches:
  refs/heads/develop fdeee30ee -> c1c2ac9f6


CELIX-272: prevent destroy of locked lock


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

Branch: refs/heads/develop
Commit: c1c2ac9f64eb4a35ee556362511fc07b9b00546e
Parents: fdeee30
Author: Bjoern Petri <bpetri@apache.org>
Authored: Wed Nov 18 14:02:17 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Wed Nov 18 14:02:17 2015 +0100

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


http://git-wip-us.apache.org/repos/asf/celix/blob/c1c2ac9f/framework/private/src/service_registration.c
----------------------------------------------------------------------
diff --git a/framework/private/src/service_registration.c b/framework/private/src/service_registration.c
index d9c5752..7eed0bf 100644
--- a/framework/private/src/service_registration.c
+++ b/framework/private/src/service_registration.c
@@ -110,6 +110,7 @@ static celix_status_t serviceRegistration_destroy(service_registration_pt
regist
     registration->callback.unregister = NULL;
 
 	properties_destroy(registration->properties);
+	celixThreadRwlock_unlock(&registration->lock);
     celixThreadRwlock_destroy(&registration->lock);
 	free(registration);
 


Mime
View raw message