Merge pull request #1487 from derekschrock/devel

Use g_free for xfs/g_xfs in xfs_delete_xfs_fs
This commit is contained in:
metalefty 2020-01-30 10:11:50 +09:00 committed by GitHub
commit f46034326a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,12 @@ xfs_create_xfs_fs(mode_t umask, uid_t uid, gid_t gid)
void void
xfs_delete_xfs_fs(struct xfs_fs *xfs) xfs_delete_xfs_fs(struct xfs_fs *xfs)
{ {
if (xfs != NULL && xfs->inode_table != NULL) if (xfs == NULL)
{
return;
}
if (xfs->inode_table != NULL)
{ {
size_t i; size_t i;
for (i = 0 ; i < xfs->inode_count; ++i) for (i = 0 ; i < xfs->inode_count; ++i)