diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-06-22 02:39:25 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-17 23:34:56 -0700 |
commit | af87d7209986692267f80000b389a974b5044a93 (patch) | |
tree | df9f9e0893ee7e1b412c21ea8e0ba1f4daac7bfb /xlators/mount/fuse/src/fuse-helpers.c | |
parent | aa2b53171ea8f786052cbe40fee2bb43f081e3e9 (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.c | 7 |
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); } } |