diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-08-11 20:22:53 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-08-11 22:22:26 -0700 |
commit | a66a483be2febd36e6cb338c9fe73d332257d89e (patch) | |
tree | a0d0fa72e6efc9e054a6c53bd33bfd41cdf63474 /rpc/xdr/src/xdr-generic.c | |
parent | c77a77ef0fca8371bba956b78a2da80f73f6f26b (diff) |
cluster/afr: Fix mem-leak
Problem:
local->xattr_req is already reffed with xattr_req that comes
in lookup fop. But when afr_lookup_xattr_req_prepare is called
local->xattr_req is over-written with dict_new() which leads
to ref leak on the dict which came in lookup fop
Fix:
Create local->xattr_req only when it is NULL
Change-Id: Ib1548f2df97688859f2cace44b93b3b733297c36
BUG: 1128801
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/8457
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc/xdr/src/xdr-generic.c')
0 files changed, 0 insertions, 0 deletions