don't leak m_fsname/m_rtname/m_logname
Add a helper to free the m_fsname/m_rtname/m_logname allocations and use
it properly for all mount failure cases. Also switch the allocations
for these to kstrdup while we're at it.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Wed Jul 23 17:33:46 AEST 2008
Workarea: itchy.melbourne.sgi.com:/i386/home/xaiki/Wrk/ptools/xfs-2.6
Inspected by: hch,dgc,xaiki
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:31728a
fs/xfs/xfs_mount.c - 1.438 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_mount.c.diff?r1=text&tr1=1.438&r2=text&tr2=1.437&f=h
fs/xfs/linux-2.6/xfs_super.c - 1.438 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_super.c.diff?r1=text&tr1=1.438&r2=text&tr2=1.437&f=h
|