diff --git a/fs/romfs/super.c b/fs/romfs/super.c index c117fa80d1e9b..42d213546894a 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -544,6 +544,7 @@ static int romfs_fill_super(struct super_block *sb, void *data, int silent) error_rsb_inval: ret = -EINVAL; error_rsb: + kfree(rsb); return ret; }