diff options
| author | Krishnan Parthasarathi <kparthas@redhat.com> | 2015-01-07 09:53:52 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2015-01-21 09:00:47 -0800 | 
| commit | 217253b692610c4f6ce5d8426832c1d69844966c (patch) | |
| tree | 3642ff961bc6be1ec8366e640bbe5a6de6909d9f /cli/src/cli-rpc-ops.c | |
| parent | 30ad195d49b971a5389d37c9d9a3583186f3d54a (diff) | |
cli: volume-info <VOLNAME>, peer-status to report failure before exit
BUG: 1181203
Change-Id: I84260d66135b1980f93b258d5de58c9e6b7a8402
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/9399
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 4184bc161eb..c26e1bbbd8d 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -484,10 +484,11 @@ gf_cli_list_friends_cbk (struct rpc_req *req, struct iovec *iov,          ret = 0;  out: -        cli_cmd_broadcast_response (ret);          if (ret)                  cli_err ("%s: failed", cmd); +        cli_cmd_broadcast_response (ret); +          if (dict)                  dict_destroy (dict); @@ -850,10 +851,11 @@ next:          ret = 0;  out: -        cli_cmd_broadcast_response (ret);          if (ret)                  cli_err ("%s", err_str); +        cli_cmd_broadcast_response (ret); +          if (dict)                  dict_destroy (dict);  | 
