ntfsmount: Fix recently introduced bug in attribute/inode close ordering in case if ntfs_fuse_open() failed.

edge.strict_endians
Yura Pakhuchiy 2007-09-24 21:08:32 +03:00
parent ad8097aa55
commit 45a641b408
1 changed files with 1 additions and 1 deletions

View File

@ -649,8 +649,8 @@ static int ntfs_fuse_open(const char *org_path, struct fuse_file_info *fi)
if (stream_name_len)
free(stream_name);
if (res) {
ntfs_inode_close(ni);
ntfs_attr_close(na);
ntfs_inode_close(ni);
} else
fi->fh = (uintptr_t)na;
return res;