commit
a04a6038bb
@ -1910,8 +1910,7 @@ fn drop(&mut self) {
|
|||||||
// The code below ensures that `FreeOnDrop` is never a null pointer
|
// The code below ensures that `FreeOnDrop` is never a null pointer
|
||||||
unsafe {
|
unsafe {
|
||||||
// `copyfile_state_free` returns -1 if the `to` or `from` files
|
// `copyfile_state_free` returns -1 if the `to` or `from` files
|
||||||
// cannot be closed. However, this is not considered this an
|
// cannot be closed. However, this is not considered an error.
|
||||||
// error.
|
|
||||||
libc::copyfile_state_free(self.0);
|
libc::copyfile_state_free(self.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user