diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-08-11 20:22:53 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-08-19 23:38:50 -0700 |
commit | e8105af16c58f8c01be9b7d58b414da4391c86d6 (patch) | |
tree | d7006c5801b35d4bae3c516b5e4c5041da48223f /api/src | |
parent | a42ea55a0062ea7c39a9e0390f13e8cb16a914aa (diff) |
cluster/afr: Fix mem-leak
Backport of http://review.gluster.org/8457
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
BUG: 1128801
Change-Id: I4a1065add7700317e0cd3d0dda0a91e12d77e340
Reviewed-on: http://review.gluster.org/8460
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src')
0 files changed, 0 insertions, 0 deletions