celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [48/50] [abbrv] celix git commit: CELIX-269: Removed double free from calculator shell for remote services test
Date Tue, 03 Nov 2015 15:10:14 GMT
CELIX-269: Removed double free from calculator shell for remote services test


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

Branch: refs/heads/master
Commit: a0f2217a08be60737b0c2a63e7899159d07dcc1d
Parents: 9441ac2
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Tue Nov 3 13:34:58 2015 +0100
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Tue Nov 3 13:34:58 2015 +0100

----------------------------------------------------------------------
 .../private/src/calculator_shell_activator.c                 | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/a0f2217a/remote_services/examples/calculator_shell/private/src/calculator_shell_activator.c
----------------------------------------------------------------------
diff --git a/remote_services/examples/calculator_shell/private/src/calculator_shell_activator.c
b/remote_services/examples/calculator_shell/private/src/calculator_shell_activator.c
index ddbe842..29fb49e 100644
--- a/remote_services/examples/calculator_shell/private/src/calculator_shell_activator.c
+++ b/remote_services/examples/calculator_shell/private/src/calculator_shell_activator.c
@@ -114,13 +114,7 @@ celix_status_t bundleActivator_stop(void * userData, bundle_context_pt
context)
 	free(activator->addCmdSrv);
 	free(activator->subCmdSrv);
 	free(activator->sqrtCmdSrv);
-
-	if (status == CELIX_SUCCESS) {
-        free(activator->addCmdSrv);
-		free(activator->sqrtCmdSrv);
-		free(activator->subCmdSrv);
-	}
-
+	
 	return status;
 }
 


Mime
View raw message