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:
parent
815c4163b6
commit
70d9e384aa
|
@ -529,6 +529,8 @@ out_brelse_bh2:
|
|||
out_brelse_bh:
|
||||
brelse(bh);
|
||||
end:
|
||||
if (ret)
|
||||
kfree(sbi);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue