mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Fixed a memory leak in ntfsrecover
A buffer was left leaking memory in reset_logfile()
This commit is contained in:
parent
1aa9882810
commit
fe3e16243a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user