fix memory issue with C string
1 files changed, 2 insertions(+), 1 deletions(-) M src/purge.rs
M src/purge.rs => src/purge.rs +2 -1
@@ 28,7 28,8 @@ pub fn update_access(fd: unix::io::RawFd, mtime: time::SystemTime) unsafe { if libc::futimes(fd as libc::c_int, times.as_ptr()) < 0 { libc::perror(std::ffi::CString::new("update_access: futimes").unwrap().as_ptr()); let cstr = std::ffi::CString::new("update_access: futimes").unwrap(); libc::perror(cstr.as_ptr()); } };