Fixed a memory leak in ntfsrecover

A buffer was left leaking memory in reset_logfile()
This commit is contained in:
Jean-Pierre André 2015-11-12 15:41:44 +01:00
parent 1aa9882810
commit fe3e16243a

View File

@ -2988,6 +2988,7 @@ static int reset_logfile(CONTEXT *ctx __attribute__((unused)))
&& (ntfs_attr_pwrite(log_na, (u64)1 << blockbits,
blocksz, buffer) == blocksz))
err = 0;
free(buffer);
}
return (err);
}