summaryrefslogtreecommitdiffstats
path: root/fs/omfs
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave.bueso@gmail.com>2010-07-06 06:50:58 +0200
committerBob Copeland <me@bobcopeland.com>2010-07-06 17:05:31 +0200
commit70d9e384aa7df681cfffd65947af72b22e86690e (patch)
tree71c84c9ceaad9c4dd961c759e12ac765932735fc /fs/omfs
parentLinux 2.6.35-rc4 (diff)
downloadlinux-70d9e384aa7df681cfffd65947af72b22e86690e.tar.xz
linux-70d9e384aa7df681cfffd65947af72b22e86690e.zip
omfs: fix memory leak
In the error path of omfs_fill_super(), the FS super block info (sbi) is not being freed. Correct this. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'fs/omfs')
-rw-r--r--fs/omfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 089839a6cc64..b5d6380e03fb 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -529,6 +529,8 @@ out_brelse_bh2:
out_brelse_bh:
brelse(bh);
end:
+ if (ret)
+ kfree(sbi);
return ret;
}