Drop mmap_source first

This commit is contained in:
Greg 2019-06-18 14:49:52 -04:00
parent 4982a6645c
commit f223fc8ce6
No known key found for this signature in database
GPG key ID: 2E44FAEEDC94B1E2

View file

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