From 2f59a55cc1fefa16875dafe2a2933c5fd2ec27ca Mon Sep 17 00:00:00 2001 From: Stephen Lord Date: Wed, 19 Feb 2003 20:15:53 +0100 Subject: [XFS] fix a couple of memory leaks found by stanford checker SGI Modid: 2.5.x-xfs:slinx:138812a --- fs/xfs/xfs_dir_leaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/xfs/xfs_dir_leaf.c') diff --git a/fs/xfs/xfs_dir_leaf.c b/fs/xfs/xfs_dir_leaf.c index d689c169f6..8dfb1ab6ff 100644 --- a/fs/xfs/xfs_dir_leaf.c +++ b/fs/xfs/xfs_dir_leaf.c @@ -648,7 +648,7 @@ xfs_dir_leaf_to_shortform(xfs_da_args_t *iargs) retval = xfs_da_read_buf(iargs->trans, iargs->dp, 0, -1, &bp, XFS_DATA_FORK); if (retval) - return(retval); + goto out; ASSERT(bp != NULL); memcpy(tmpbuffer, bp->data, XFS_LBSIZE(dp->i_mount)); leaf = (xfs_dir_leafblock_t *)tmpbuffer; -- cgit v1.2.3