mirror of
https://github.com/chmln/sd
synced 2024-11-22 11:13:04 +00:00
Drop mmap_source first
This commit is contained in:
parent
4982a6645c
commit
f223fc8ce6
1 changed files with 1 additions and 1 deletions
|
@ -110,8 +110,8 @@ impl Replacer {
|
|||
mmap_target.deref_mut().write_all(&replaced)?;
|
||||
mmap_target.flush()?;
|
||||
|
||||
drop(source);
|
||||
drop(mmap_source);
|
||||
drop(source);
|
||||
|
||||
target.persist(path)?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue