summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2015-12-09 03:53:45 -0500
committerRaghavendra G <rgowdapp@redhat.com>2016-01-06 02:42:07 -0800
commit1a464c2ef3b8351e2d5217009d9a0a20e03add9a (patch)
treebdec5ce4af8ec9269c7621e439cd7b89afd3ce39 /xlators
parenta69ea2e635eb2ba64f53e3d280b345cb2a65ad13 (diff)
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 <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/12939 Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c3
1 files changed, 1 insertions, 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: