You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by bp...@apache.org on 2015/11/18 13:21:45 UTC

celix git commit: CELIX-190: fix minor leaks

Repository: celix
Updated Branches:
  refs/heads/develop fed25a758 -> 4776c571e


CELIX-190: fix minor leaks


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

Branch: refs/heads/develop
Commit: 4776c571e0be56810188762a9325446315fc35eb
Parents: fed25a7
Author: Bjoern Petri <bp...@apache.org>
Authored: Wed Nov 18 13:21:27 2015 +0100
Committer: Bjoern Petri <bp...@apache.org>
Committed: Wed Nov 18 13:21:27 2015 +0100

----------------------------------------------------------------------
 .../private/src/calculator_endpoint_activator.c                    | 2 +-
 .../private/src/calculator_endpoint_activator.c                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/4776c571/remote_services/examples/calculator_endpoint/private/src/calculator_endpoint_activator.c
----------------------------------------------------------------------
diff --git a/remote_services/examples/calculator_endpoint/private/src/calculator_endpoint_activator.c b/remote_services/examples/calculator_endpoint/private/src/calculator_endpoint_activator.c
index 04130f8..319ecb0 100644
--- a/remote_services/examples/calculator_endpoint/private/src/calculator_endpoint_activator.c
+++ b/remote_services/examples/calculator_endpoint/private/src/calculator_endpoint_activator.c
@@ -81,7 +81,7 @@ celix_status_t bundleActivator_stop(void * userData, bundle_context_pt context)
 
 	serviceRegistration_unregister(activator->endpointServiceRegistration);
 
-	//calculatorEndpoint_destroy(activator->endpointService->endpoint);
+	calculatorEndpoint_destroy(&activator->endpointService->endpoint);
 	free(activator->endpointService);
 
 	return status;

http://git-wip-us.apache.org/repos/asf/celix/blob/4776c571/remote_services/examples/calculator_endpoint2/private/src/calculator_endpoint_activator.c
----------------------------------------------------------------------
diff --git a/remote_services/examples/calculator_endpoint2/private/src/calculator_endpoint_activator.c b/remote_services/examples/calculator_endpoint2/private/src/calculator_endpoint_activator.c
index ce2a5ea..9f89d91 100644
--- a/remote_services/examples/calculator_endpoint2/private/src/calculator_endpoint_activator.c
+++ b/remote_services/examples/calculator_endpoint2/private/src/calculator_endpoint_activator.c
@@ -81,7 +81,7 @@ celix_status_t bundleActivator_stop(void * userData, bundle_context_pt context)
 
 	serviceRegistration_unregister(activator->endpointServiceRegistration);
 
-	free(activator->endpointService->endpoint);
+	calculatorEndpoint_destroy(&activator->endpointService->endpoint);
 	free(activator->endpointService);
 
 	return status;