From 263040a1e7cefa9fb916d6328fc045fdb30ed268 Mon Sep 17 00:00:00 2001 From: Krzysztof Błaszkowski Date: Sun, 12 Jun 2016 19:25:23 +0200 Subject: freevxfs: fix memory leak in vxfs_read_fshead() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every successful mount two structs vxfs_fsh were not released. Signed-off-by: Krzysztof Błaszkowski Signed-off-by: Christoph Hellwig --- fs/freevxfs/vxfs_fshead.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/freevxfs') diff --git a/fs/freevxfs/vxfs_fshead.c b/fs/freevxfs/vxfs_fshead.c index 69a10d62b375..a4610a77649e 100644 --- a/fs/freevxfs/vxfs_fshead.c +++ b/fs/freevxfs/vxfs_fshead.c @@ -172,6 +172,8 @@ vxfs_read_fshead(struct super_block *sbp) goto out_iput_ilist; } + kfree(pfp); + kfree(sfp); return 0; out_iput_ilist: -- cgit v1.2.3-58-ga151