diff --git a/ChangeLog b/ChangeLog index 2374936c..0d3e3117 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,7 @@ xx/xx/2005 - 1.12.0-WIP - Only include sys/ioctl.h in libntfs/device.c if ./configure detected it to be present. (Christophe) - ntfscluster: fix incorrect volume usage calculation. (Szaka) + - ntfscluster, utils.c::mft_next_record(): fix gigaleak. (Szaka) 08/08/2005 - 1.11.2 - ntfsdecrypt now works and lots of fixes and improvements. diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index 43db5fab..fd8e3dbe 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -955,8 +955,11 @@ int mft_next_record (struct mft_search_ctx *ctx) (unsigned long long) ctx->mft_num, strerror (errno)); // free / close + ntfs_attr_close(mft); return -1; } + + ntfs_attr_close(mft); } if (ctx->flags_match & ctx->flags_search) {