Avoid a double-free error. ntfs_empty_logfile() has no reason to close na/ni anyway, and is only called from ntfs_logfile_reset() which already closes them, so these lines can be safely removed.
parent
a1a13da74a
commit
ae37e54d8c
|
@ -768,8 +768,6 @@ done:
|
|||
ntfs_log_trace("Done.\n");
|
||||
return 0;
|
||||
io_error_exit:
|
||||
ntfs_attr_close(na);
|
||||
ntfs_inode_close(na->ni);
|
||||
errno = err;
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue