diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs index 23331a0a0d..627bfa5ec1 100644 --- a/src/mount/bsd.rs +++ b/src/mount/bsd.rs @@ -397,7 +397,7 @@ impl<'a> Drop for Nmount<'a> { // Free the owned string. Safe because we recorded ownership, // and Nmount does not implement Clone. unsafe { - CString::from_raw(iov.0.iov_base as *mut c_char); + drop(CString::from_raw(iov.0.iov_base as *mut c_char)); } } }