]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: fix memory leasks in libxfs_umount()
authorEric Sandeen <sandeen@sandeen.net>
Mon, 24 Aug 2015 01:52:42 +0000 (11:52 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 24 Aug 2015 01:52:42 +0000 (11:52 +1000)
commit4334e2e8aaa2063e8ce46db20691eabb1f545f7d
tree2f699b131b39bca81e709bb89a6db336f9cd8ee8
parent66fc04e09573383fde90e2a35944d251f366c773
libxfs: fix memory leasks in libxfs_umount()

libxfs_umount was failing to free a handful of resources; fix that
up.  Call it from xfs_copy as well, while we're at it; every other
libxfs_mount has a libxfs_umount counterpart, at least on a clean
exit.

[dchinner: fix superblock buffer leak uncovered by adding
 libxfs_umount() to xfs_copy. ]

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
copy/xfs_copy.c
libxfs/init.c