From 535d087591aeffcefe8295de9d954d70e6763686 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 20 Dec 2016 11:51:07 +0530 Subject: [PATCH 248/257] client,server: Free xdr-allocated compound req/rsp arrays Backport of: http://review.gluster.org/16210 Change-Id: Ifa3e0ad5d293fa069bb6a6dc5eacf1f780f020f0 BUG: 1398311 Signed-off-by: Krutika Dhananjay Reviewed-on: https://code.engineering.redhat.com/gerrit/93488 Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri --- xlators/protocol/client/src/client-rpc-fops.c | 2 +- xlators/protocol/server/src/server-rpc-fops.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index e289086..11a4e85 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -3225,8 +3225,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 d8ad6a7..5d5bdb4 100644 --- a/xlators/protocol/server/src/server-rpc-fops.c +++ b/xlators/protocol/server/src/server-rpc-fops.c @@ -6776,6 +6776,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); -- 2.9.3