summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/protocol/client/src/client-rpc-fops.c2
-rw-r--r--xlators/protocol/server/src/server-rpc-fops.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c
index 28952648786..c260ac211ef 100644
--- a/xlators/protocol/client/src/client-rpc-fops.c
+++ b/xlators/protocol/client/src/client-rpc-fops.c
@@ -3209,8 +3209,8 @@ out:
gf_error_to_errno (rsp.op_errno), args_cbk, xdata);
free (rsp.xdata.xdata_val);
-
client_compound_rsp_cleanup (&rsp, length);
+ free (rsp.compound_rsp_array.compound_rsp_array_val);
if (xdata)
dict_unref (xdata);
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c
index dff495cc550..0a5497f22e0 100644
--- a/xlators/protocol/server/src/server-rpc-fops.c
+++ b/xlators/protocol/server/src/server-rpc-fops.c
@@ -6837,6 +6837,7 @@ out:
length = args.compound_req_array.compound_req_array_len;
server_compound_req_cleanup (&args, length);
+ free (args.compound_req_array.compound_req_array_val);
if (op_errno)
SERVER_REQ_SET_ERROR (req, ret);