Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Błaszkowski and committed by
Christoph Hellwig
263040a1 1cce1701

+2
+2
fs/freevxfs/vxfs_fshead.c
··· 172 172 goto out_iput_ilist; 173 173 } 174 174 175 + kfree(pfp); 176 + kfree(sfp); 175 177 return 0; 176 178 177 179 out_iput_ilist: