From 53a76d6e3bbd597a11778ce252709eaa86ac5125 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 16 Nov 2016 18:26:52 +0530 Subject: protocol/client: Fix iobref and iobuf leaks in COMPOUND fop Change-Id: I408879aa2bbd8ea176fbc0d0eba5567e5df1b2b3 BUG: 1395687 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/15860 Reviewed-by: Pranith Kumar Karampuri Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System --- xlators/protocol/client/src/client-rpc-fops.c | 3 ++- 1 file 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 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: -- cgit