summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-12-14 16:42:26 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-12-26 16:38:37 +0000
commit0beca839679d437d49c7481cb7370e1350f16ba9 (patch)
treecc93a10dc991bc4a5b932510864002f5afb91e47 /xlators
parent16fb69c519b3d61bf57065587439b4260b40291a (diff)
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 <nbalacha@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/readdir-ahead/src/readdir-ahead.c8
1 files changed, 0 insertions, 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;
}