From b028eaed4764e611a2b529f9ed5a92047752d27a Mon Sep 17 00:00:00 2001 From: antonkukoba <akukoba@adfsolutions.com> Date: Fri, 22 Nov 2013 11:53:49 +0200 Subject: [PATCH] Update hfs.c Fixed unclosed file handles --- tsk/fs/hfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tsk/fs/hfs.c b/tsk/fs/hfs.c index 29dff27df..f5b9495c8 100644 --- a/tsk/fs/hfs.c +++ b/tsk/fs/hfs.c @@ -6250,6 +6250,7 @@ hfs_open(TSK_IMG_INFO * img_info, TSK_OFF_T offset, if (file != NULL) { hfs->root_crtime = file->meta->crtime; hfs->has_root_crtime = TRUE; + tsk_fs_file_close(file); } else { hfs->has_root_crtime = FALSE; @@ -6280,6 +6281,7 @@ hfs_open(TSK_IMG_INFO * img_info, TSK_OFF_T offset, hfs->meta_crtime = file->meta->crtime; hfs->has_meta_crtime = TRUE; hfs->meta_inum = inum; + tsk_fs_file_close(file); } } @@ -6298,6 +6300,7 @@ hfs_open(TSK_IMG_INFO * img_info, TSK_OFF_T offset, hfs->metadir_crtime = file->meta->crtime; hfs->has_meta_dir_crtime = TRUE; hfs->meta_dir_inum = inum; + tsk_fs_file_close(file); } } -- GitLab