diff options
author | Susant Palai <spalai@redhat.com> | 2015-12-09 03:53:45 -0500 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-12-10 02:31:48 -0800 |
commit | 3949541b21b1d03ab37c7ab39f95581d553251d4 (patch) | |
tree | 6e547c46a0df117b2743b176b33c20a60591563b /xlators/storage | |
parent | d57a5a57b8e87caffce94ed497240b37172f4a27 (diff) |
storage/posix: fix dict leak in posix_fgetxattr
Change-Id: I8c53805993570e6f37786dde2103cb884c026791
BUG: 1285230
Signed-off-by: Susant Palai <spalai@redhat.com>
Reviewed-on: http://review.gluster.org/12916
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index d727f930552..efb5f03bef1 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4271,7 +4271,7 @@ posix_fgetxattr (call_frame_t *frame, xlator_t *this, _fd = pfd->fd; /* Get the total size */ - dict = get_new_dict (); + dict = dict_new (); if (!dict) { op_ret = -1; op_errno = ENOMEM; @@ -4455,7 +4455,6 @@ done: if (dict) { dict_del (dict, GFID_XATTR_KEY); dict_del (dict, GF_XATTR_VOL_ID_KEY); - dict_ref (dict); } out: |