You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2019/05/26 18:52:14 UTC

[celix] branch develop updated: Adds missing svc reg release

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7a3e198  Adds missing svc reg release
7a3e198 is described below

commit 7a3e1989deb734ab73079d52decd6f64a8321370
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sun May 26 20:51:54 2019 +0200

    Adds missing svc reg release
---
 libs/framework/src/service_registry.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/framework/src/service_registry.c b/libs/framework/src/service_registry.c
index 3516342..ed29676 100644
--- a/libs/framework/src/service_registry.c
+++ b/libs/framework/src/service_registry.c
@@ -678,6 +678,7 @@ celix_status_t serviceRegistry_getService(service_registry_pt registry, bundle_p
         if (count == 1) {
             serviceRegistration_getService(registration, bundle, &service);
             serviceReference_setService(reference, service);
+            serviceRegistration_release(registration);
         }
 
         /* NOTE the out argument of sr_getService should be 'const void**'