summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-02-17 12:15:48 +0530
committerVijay Bellur <vijay@gluster.com>2012-02-17 04:20:21 -0800
commitb016fe67b6c8957eebc9736b9af9406326800b6d (patch)
treed40aaca0aed580d5aac66ba9947b435f9ecdd148 /xlators
parent489a7a10fe2e00d00d86f0304145a4910bb94070 (diff)
mount/fuse: unref the fd from resolve to avoid fd leak
Change-Id: I162e07219b98669bc6e09784830ca9407518fd8b BUG: 794618 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/2760 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index 81994ad9614..c794813cf3c 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -37,6 +37,9 @@ fuse_resolve_wipe (fuse_resolve_t *resolve)
if (resolve->resolved)
GF_FREE ((void *)resolve->resolved);
+ if (resolve->fd)
+ fd_unref (resolve->fd);
+
loc_wipe (&resolve->resolve_loc);
if (resolve->hint) {