diff options
author | N Balachandran <nbalacha@redhat.com> | 2018-12-14 16:42:26 +0530 |
---|---|---|
committer | Xavi Hernandez <xhernandez@redhat.com> | 2018-12-14 15:22:11 +0000 |
commit | fc74ef85e0780e0a265275df00e4d0d4a2d05eab (patch) | |
tree | efbbade26e15cae37d452c613f0f42e7d5b19aa1 | |
parent | 5ec271c316ec6538130d25148179721c595dd5a2 (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.
Change-Id: I2edb857696191e872ad12a12efc36999626bacc7
fixes: bz#1659432
Signed-off-by: N Balachandran <nbalacha@redhat.com>
-rw-r--r-- | xlators/performance/readdir-ahead/src/readdir-ahead.c | 8 |
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 2d2c807ccd6..7ae5719e8e7 100644 --- a/xlators/performance/readdir-ahead/src/readdir-ahead.c +++ b/xlators/performance/readdir-ahead/src/readdir-ahead.c @@ -713,18 +713,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; } |