e7a346
From 64cfb0126d88bd6b841777fefb63e413b587a7b1 Mon Sep 17 00:00:00 2001
e7a346
From: N Balachandran <nbalacha@redhat.com>
e7a346
Date: Tue, 18 Dec 2018 14:08:04 +0530
e7a346
Subject: [PATCH 486/493] performance/rda:  Fixed dict_t memory leak
e7a346
e7a346
Removed all references to dict_t xdata_from_req which is
e7a346
allocated but not used anywhere. It is also not cleaned up
e7a346
and hence causes a memory leak.
e7a346
e7a346
upstream patch: https://review.gluster.org/#/c/glusterfs/+/21859/
e7a346
e7a346
> Change-Id: I2edb857696191e872ad12a12efc36999626bacc7
e7a346
> fixes: bz#1659432
e7a346
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
e7a346
e7a346
Change-Id: Ic07ecbefef3140aeb24a2afaf97c80ee65768e7e
e7a346
BUG: 1659439
e7a346
Signed-off-by: N Balachandran <nbalacha@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/158915
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Raghavendra Gowdappa <rgowdapp@redhat.com>
e7a346
---
e7a346
 xlators/performance/readdir-ahead/src/readdir-ahead.c | 8 --------
e7a346
 1 file changed, 8 deletions(-)
e7a346
e7a346
diff --git a/xlators/performance/readdir-ahead/src/readdir-ahead.c b/xlators/performance/readdir-ahead/src/readdir-ahead.c
e7a346
index 6501a6b..3e0951c 100644
e7a346
--- a/xlators/performance/readdir-ahead/src/readdir-ahead.c
e7a346
+++ b/xlators/performance/readdir-ahead/src/readdir-ahead.c
e7a346
@@ -505,18 +505,10 @@ rda_opendir(call_frame_t *frame, xlator_t *this, loc_t *loc, fd_t *fd,
e7a346
 {
e7a346
         int                  op_errno = 0;
e7a346
         struct rda_local    *local = NULL;
e7a346
-        dict_t              *xdata_from_req = NULL;
e7a346
 
e7a346
         if (xdata) {
e7a346
-                xdata_from_req = dict_new();
e7a346
-                if (!xdata_from_req) {
e7a346
-                        op_errno = ENOMEM;
e7a346
-                        goto unwind;
e7a346
-                }
e7a346
-
e7a346
                 local = mem_get0(this->local_pool);
e7a346
                 if (!local) {
e7a346
-                        dict_unref(xdata_from_req);
e7a346
                         op_errno = ENOMEM;
e7a346
                         goto unwind;
e7a346
                 }
e7a346
-- 
e7a346
1.8.3.1
e7a346