summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-helpers.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-06-22 02:35:58 +0000
committerAnand Avati <avati@gluster.com>2011-07-11 23:19:05 -0700
commitcf395e9af76de16162328fbcf0aef4e8c72adfb8 (patch)
treea73a107f77b1d366a909b5fbe4b7b97a3fc1d9db /xlators/mount/fuse/src/fuse-helpers.c
parentb320532ca74643108df399663e3c002af3e0e219 (diff)
fuse: fix inode-leaks in fuse_lookup_and_resume codepath.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2525 ([glusterfs-3.1.3qa8]: inode leak in rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2525
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index d0dad29a409..e03d15c2bea 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -68,14 +68,15 @@ fuse_resolve_wipe (fuse_resolve_t *resolve)
comp = resolve->components;
if (comp) {
-/*
int i = 0;
for (i = 0; comp[i].basename; i++) {
- if (comp[i].inode)
+ if (comp[i].inode) {
inode_unref (comp[i].inode);
+ comp[i].inode = NULL;
+ }
}
-*/
+
GF_FREE ((void *)resolve->components);
}
}