From ae37e54d8c2f8d7c4a713d33b7a4a7e186d4365b Mon Sep 17 00:00:00 2001 From: uvman Date: Fri, 21 Jul 2006 23:16:09 +0000 Subject: [PATCH] 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. --- libntfs/logfile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libntfs/logfile.c b/libntfs/logfile.c index a429ce68..a3bd1ab0 100644 --- a/libntfs/logfile.c +++ b/libntfs/logfile.c @@ -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; }