Messages in this thread Patch in this message | | | From | Bob Copeland <> | Subject | [PATCH 1/4] omfs: fix memory leak | Date | Wed, 14 Jul 2010 23:26:18 -0400 |
| |
From: Davidlohr Bueso <dave.bueso@gmail.com>
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> --- fs/omfs/inode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 089839a..b5d6380 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; } -- 1.5.6.5
| |