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>
This commit is contained in:
N Balachandran 2018-12-14 16:42:26 +05:30 committed by Xavi Hernandez
parent 5ec271c316
commit fc74ef85e0

View File

@ -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;
}