summaryrefslogtreecommitdiff
path: root/fs/freevxfs/vxfs_fshead.c
diff options
context:
space:
mode:
authorKrzysztof Błaszkowski <kb@sysmikro.com.pl>2016-06-12 20:25:23 +0300
committerChristoph Hellwig <hch@lst.de>2016-06-12 20:27:31 +0300
commit263040a1e7cefa9fb916d6328fc045fdb30ed268 (patch)
treeb34b3b4d3933596d049dcef9be2affabce34b809 /fs/freevxfs/vxfs_fshead.c
parent1cce17017970c0797943e069cc520e17d068ca4b (diff)
downloadlinux-263040a1e7cefa9fb916d6328fc045fdb30ed268.tar.xz
freevxfs: fix memory leak in vxfs_read_fshead()
Every successful mount two structs vxfs_fsh were not released. Signed-off-by: Krzysztof Błaszkowski <kb@sysmikro.com.pl> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/freevxfs/vxfs_fshead.c')
-rw-r--r--fs/freevxfs/vxfs_fshead.c2
1 files changed, 2 insertions, 0 deletions
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: