Fix gigaleak in ntfscluster, utils.c::mft_next_record()
parent
d29a3e9b97
commit
dc284e1e10
|
@ -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.
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue