Fix gigaleak in ntfscluster, utils.c::mft_next_record()

edge.strict_endians
szaka 2005-08-21 09:46:29 +00:00
parent d29a3e9b97
commit dc284e1e10
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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) {