summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}