From 3949541b21b1d03ab37c7ab39f95581d553251d4 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 Change-Id: I8c53805993570e6f37786dde2103cb884c026791 BUG: 1285230 Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/12916 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators/storage/posix') 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: -- cgit