diff -Nur sleuthkit-4.6.7/tsk/vs/dos.c sleuthkit-4.6.7.new/tsk/vs/dos.c
--- sleuthkit-4.6.7/tsk/vs/dos.c	2019-08-03 04:20:57.000000000 +0800
+++ sleuthkit-4.6.7.new/tsk/vs/dos.c	2020-12-09 17:35:47.356058422 +0800
@@ -769,6 +769,7 @@
                     tsk_error_set_errno(TSK_ERR_VS_BLK_NUM);
                     tsk_error_set_errstr
                         ("dos_load_ext_table: Loop in partition table detected");
+                    free(sect_buf);
                     return 1;
                 }
                 part_info = part_info->next;
