diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-06-22 02:43:30 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-17 23:34:48 -0700 |
commit | b53d76e392f0b88a7d135f099fe52ae933050719 (patch) | |
tree | 09e3007021ca991f5fd6aebf661bed85d8db7780 /xlators/mount/fuse/src/fuse-helpers.c | |
parent | 1a807fec3992fcff9bfbc410f0a21a5794d04f7a (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 cd35d7192..6ac6b3092 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); } } |