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/10/12 23:34:08 UTC
celix git commit: CELIX-261: Fix memory leak fix
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 <bp...@apache.org>
Authored: Mon Oct 12 23:33:31 2015 +0200
Committer: Bjoern Petri <bp...@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;
}