summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-11-16 18:26:52 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-11-16 22:25:54 -0800
commit53a76d6e3bbd597a11778ce252709eaa86ac5125 (patch)
tree54fe96d6cca5088e48dde0ca9a8b7e20852fd7ee /xlators/protocol/client
parent83311c5bb735508274bb25cc610e929481577f9b (diff)
protocol/client: Fix iobref and iobuf leaks in COMPOUND fop
Change-Id: I408879aa2bbd8ea176fbc0d0eba5567e5df1b2b3 BUG: 1395687 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/15860 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-rpc-fops.c3
1 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 2d1b9540df4..602de947d9f 100644
--- a/xlators/protocol/client/src/client-rpc-fops.c
+++ b/xlators/protocol/client/src/client-rpc-fops.c
@@ -6145,7 +6145,6 @@ client3_3_compound (call_frame_t *frame, xlator_t *this, void *data)
rsphdr->iov_len = iobuf_pagesize (rsphdr_iobuf);
rsphdr_count = 1;
rsphdr_iobuf = NULL;
- rsphdr_iobref = NULL;
req.compound_fop_enum = c_args->fop_enum;
req.compound_req_array.compound_req_array_len = c_args->fop_length;
@@ -6195,6 +6194,8 @@ client3_3_compound (call_frame_t *frame, xlator_t *this, void *data)
GF_FREE (req.xdata.xdata_val);
+ iobref_unref (rsphdr_iobref);
+
compound_request_cleanup (&req);
return 0;
unwind: