[Top] [All Lists]

TAKE 981498 - don't leak m_fsname/m_rtname/m_logname

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: TAKE 981498 - don't leak m_fsname/m_rtname/m_logname
From: xaiki@xxxxxxx (Niv Sardi-Altivanik)
Date: Wed, 23 Jul 2008 17:35:00 +1000 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
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:

Modid:  xfs-linux-melb:xfs-kern:31728a
fs/xfs/xfs_mount.c - 1.438 - changed
fs/xfs/linux-2.6/xfs_super.c - 1.438 - changed

<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 981498 - don't leak m_fsname/m_rtname/m_logname, Niv Sardi-Altivanik <=