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>
This commit is contained in:
Davidlohr Bueso 2010-07-06 00:50:58 -04:00 committed by Bob Copeland
parent 815c4163b6
commit 70d9e384aa
1 changed files with 2 additions and 0 deletions

View File

@ -529,6 +529,8 @@ out_brelse_bh2:
out_brelse_bh:
brelse(bh);
end:
if (ret)
kfree(sbi);
return ret;
}