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-261: Fix memory leak fix
Date Mon, 12 Oct 2015 21:34:08 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 748eff0a5 -> 4ee2e7fc1


CELIX-261: Fix memory leak fix


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

Branch: refs/heads/develop
Commit: 4ee2e7fc19ba78a9b883d96cc62cfeefee3c7750
Parents: 748eff0
Author: Bjoern Petri <bpetri@apache.org>
Authored: Mon Oct 12 23:33:31 2015 +0200
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Mon Oct 12 23:33:31 2015 +0200

----------------------------------------------------------------------
 shell/private/src/inspect_command.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/4ee2e7fc/shell/private/src/inspect_command.c
----------------------------------------------------------------------
diff --git a/shell/private/src/inspect_command.c b/shell/private/src/inspect_command.c
index 15bcf3e..944d929 100644
--- a/shell/private/src/inspect_command.c
+++ b/shell/private/src/inspect_command.c
@@ -134,7 +134,6 @@ celix_status_t inspectCommand_printExportedServices(command_pt command,
array_li
 				out(line);
 			}
 		}
-		arrayList_destroy(bundles);
 	}
 
 	if (status == CELIX_SUCCESS) {
@@ -194,6 +193,10 @@ celix_status_t inspectCommand_printExportedServices(command_pt command,
array_li
 		}
 	}
 
+	if (bundles != NULL) {
+	    arrayList_destroy(bundles);
+	}
+
 	return status;
 }
 


Mime
View raw message