From 9cd157b3fb308b5a3a3ed45e07b151a5bd46d4bb Mon Sep 17 00:00:00 2001
From: esaunders <esaunders@basistech.com>
Date: Tue, 10 Dec 2019 17:21:54 -0500
Subject: [PATCH] Added comment on stack creation.

---
 tsk/fs/ntfs.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tsk/fs/ntfs.c b/tsk/fs/ntfs.c
index 7fa6b57d8..4d65ca691 100755
--- a/tsk/fs/ntfs.c
+++ b/tsk/fs/ntfs.c
@@ -2625,6 +2625,12 @@ ntfs_proc_attrlist(NTFS_INFO * ntfs,
         }
 
         if (processed_inum_list == NULL) {
+            /*
+             * Create a stack to keep track of inums already seen.
+             * The local mftSeenList variable is used to keep track
+             * of which iteration created the stack so that it can
+             * be correctly freed later.
+             */
             processed_inum_list = mftSeenList = tsk_stack_create();
         }
 
-- 
GitLab