summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-01-25 06:05:54 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-02-09 04:50:47 -0800
commit36a0a4afb2e996f59651a845e5680d2f80cc6f23 (patch)
tree59f56b3e11ac7ccab8140628b9e55566505753bf
parent26d2257801281a5bd2833d8f22cebead57a4b4c6 (diff)
fix leak in romfs_fill_super()
commit 7e32b7bb734047c5e3cecf2e896b9cf8fc35d1e8 upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--fs/romfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c
index c117fa80d1e9..42d213546894 100644
--- a/fs/romfs/super.c
+++ b/fs/romfs/super.c
@@ -544,6 +544,7 @@ error:
error_rsb_inval:
ret = -EINVAL;
error_rsb:
+ kfree(rsb);
return ret;
}