Browse Source

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>
Krzysztof Błaszkowski 9 years ago
parent
commit
263040a1e7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      fs/freevxfs/vxfs_fshead.c

+ 2 - 0
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: