From 0beca839679d437d49c7481cb7370e1350f16ba9 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Fri, 14 Dec 2018 16:42:26 +0530 Subject: performance/rda: Fixed dict_t memory leak Removed all references to dict_t xdata_from_req which is allocated but not used anywhere. It is also not cleaned up and hence causes a memory leak. fixes: bz#1659676 Change-Id: I2edb857696191e872ad12a12efc36999626bacc7 Signed-off-by: N Balachandran --- xlators/performance/readdir-ahead/src/readdir-ahead.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xlators/performance/readdir-ahead/src/readdir-ahead.c b/xlators/performance/readdir-ahead/src/readdir-ahead.c index 7a5f989eb73..98c1a3f7259 100644 --- a/xlators/performance/readdir-ahead/src/readdir-ahead.c +++ b/xlators/performance/readdir-ahead/src/readdir-ahead.c @@ -638,18 +638,10 @@ rda_opendir(call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd, { int op_errno = 0; struct rda_local *local = NULL; - dict_t *xdata_from_req = NULL; if (xdata) { - xdata_from_req = dict_new(); - if (!xdata_from_req) { - op_errno = ENOMEM; - goto unwind; - } - local = mem_get0(this->local_pool); if (!local) { - dict_unref(xdata_from_req); op_errno = ENOMEM; goto unwind; } -- cgit