ntfsmount: Fix recently introduced bug in attribute/inode close ordering in case if ntfs_fuse_open() failed.
parent
ad8097aa55
commit
45a641b408
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue