diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-12-20 11:51:07 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-12-22 05:44:52 -0800 |
commit | 33288f95168402042e6652c55d9e3c37951c5804 (patch) | |
tree | b4e500dbc7218d3cde648bc94cac52490ebe3997 | |
parent | 63c6eafac95fbeb126fbc168933f4f204ea0a0ec (diff) |
client,server: Free xdr-allocated compound req/rsp arrays
Backport of: http://review.gluster.org/16210
Change-Id: If757ffc08d07aef6532e9087392258002b24847a
BUG: 1406308
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/16222
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
-rw-r--r-- | xlators/protocol/client/src/client-rpc-fops.c | 2 | ||||
-rw-r--r-- | xlators/protocol/server/src/server-rpc-fops.c | 1 |
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 a3acdb3b925..f2ca63ca04b 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -3221,8 +3221,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); |