From 1a464c2ef3b8351e2d5217009d9a0a20e03add9a Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Wed, 9 Dec 2015 03:53:45 -0500 Subject: storage/posix: fix dict leak in posix_fgetxattr BUG: 1290363 Change-Id: I49200316250b9894fdbf93ae33e50b02abb74db8 Reviewed-on: http://review.gluster.org/12916 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/12939 Reviewed-by: Raghavendra G --- xlators/storage/posix/src/posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 790b61ad2da..380b5b676dc 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4282,7 +4282,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) { goto out; } @@ -4447,7 +4447,6 @@ done: if (dict) { dict_del (dict, GFID_XATTR_KEY); dict_del (dict, GF_XATTR_VOL_ID_KEY); - dict_ref (dict); } out: -- cgit