summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-rpc-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-rpc-ops.c')
-rw-r--r--cli/src/cli-rpc-ops.c6
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);