diff options
| author | Davidlohr Bueso <dave.bueso@gmail.com> | 2010-07-06 00:50:58 -0400 |
|---|---|---|
| committer | Bob Copeland <me@bobcopeland.com> | 2010-07-06 11:05:31 -0400 |
| commit | 70d9e384aa7df681cfffd65947af72b22e86690e (patch) | |
| tree | 71c84c9ceaad9c4dd961c759e12ac765932735fc | |
| parent | 815c4163b6c8ebf8152f42b0a5fd015cfdcedc78 (diff) | |
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>
| -rw-r--r-- | 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 089839a6cc64..b5d6380e03fb 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c | |||
| @@ -529,6 +529,8 @@ out_brelse_bh2: | |||
| 529 | out_brelse_bh: | 529 | out_brelse_bh: |
| 530 | brelse(bh); | 530 | brelse(bh); |
| 531 | end: | 531 | end: |
| 532 | if (ret) | ||
| 533 | kfree(sbi); | ||
| 532 | return ret; | 534 | return ret; |
| 533 | } | 535 | } |
| 534 | 536 | ||
