diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-12-20 11:51:07 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-12-20 22:58:33 -0800 |
commit | 9509b4619b8a373538b6857a06f1032c46a432fe (patch) | |
tree | 8460fb991e49954cb65bd58c3733c6effc67d430 /xlators | |
parent | 2bb2313656a19ee8efe3cfeda4f2ae90e8e49b62 (diff) |
client,server: Free xdr-allocated compound req/rsp arrays
Change-Id: I9e1829f4f73f001bba33005032e030f289e8d003
BUG: 1406252
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/16210
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators')
-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 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); |