summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-rpc-ops.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 13ff21a6c17..e1422cfd68a 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -1178,6 +1178,9 @@ gf_cli_create_volume_cbk(struct rpc_req *req, struct iovec *iov, int count,
out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+
+ if (rsp_dict)
+ dict_unref(rsp_dict);
return ret;
}
@@ -1251,6 +1254,9 @@ gf_cli_delete_volume_cbk(struct rpc_req *req, struct iovec *iov, int count,
out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+
+ if (rsp_dict)
+ dict_unref(rsp_dict);
gf_log("", GF_LOG_DEBUG, "Returning with %d", ret);
return ret;
}
@@ -1336,6 +1342,9 @@ out:
cli_local_wipe(local);
gf_free_xdr_cli_rsp(rsp);
+ if (dict)
+ dict_unref(dict);
+
gf_log("", GF_LOG_DEBUG, "Returning with %d", ret);
return ret;
}
@@ -1468,6 +1477,9 @@ gf_cli_start_volume_cbk(struct rpc_req *req, struct iovec *iov, int count,
out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+
+ if (rsp_dict)
+ dict_unref(rsp_dict);
return ret;
}
@@ -1543,6 +1555,9 @@ out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+ if (rsp_dict)
+ dict_unref(rsp_dict);
+
return ret;
}
@@ -2599,6 +2614,9 @@ gf_cli_remove_tier_brick_cbk(struct rpc_req *req, struct iovec *iov, int count,
out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+
+ if (rsp_dict)
+ dict_unref(rsp_dict);
return ret;
}
@@ -4056,6 +4074,7 @@ out:
cli_cmd_broadcast_response(ret);
}
gf_free_xdr_cli_rsp(rsp);
+
return ret;
}
@@ -9341,6 +9360,9 @@ gf_cli_list_volume_cbk(struct rpc_req *req, struct iovec *iov, int count,
out:
cli_cmd_broadcast_response(ret);
gf_free_xdr_cli_rsp(rsp);
+
+ if (dict)
+ dict_unref(dict);
return ret;
}