Loading openssl/src/ssl/bio.rs +2 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ unsafe extern "C" fn destroy<S>(bio: *mut BIO) -> c_int { let data = BIO_get_data(bio); assert!(!data.is_null()); Box::<StreamState<S>>::from_raw(data as *mut _); drop(Box::<StreamState<S>>::from_raw(data as *mut _)); BIO_set_data(bio, ptr::null_mut()); BIO_set_init(bio, 0); 1 Loading Loading @@ -257,7 +257,7 @@ cfg_if! { impl Drop for BIO_METHOD { fn drop(&mut self) { unsafe { Box::<ffi::BIO_METHOD>::from_raw(self.0); drop(Box::<ffi::BIO_METHOD>::from_raw(self.0)); } } } Loading openssl/src/ssl/mod.rs +1 −1 Original line number Diff line number Diff line Loading @@ -558,7 +558,7 @@ unsafe extern "C" fn free_data_box<T>( _argp: *mut c_void, ) { if !ptr.is_null() { Box::<T>::from_raw(ptr as *mut T); drop(Box::<T>::from_raw(ptr as *mut T)); } } Loading Loading
openssl/src/ssl/bio.rs +2 −2 Original line number Diff line number Diff line Loading @@ -183,7 +183,7 @@ unsafe extern "C" fn destroy<S>(bio: *mut BIO) -> c_int { let data = BIO_get_data(bio); assert!(!data.is_null()); Box::<StreamState<S>>::from_raw(data as *mut _); drop(Box::<StreamState<S>>::from_raw(data as *mut _)); BIO_set_data(bio, ptr::null_mut()); BIO_set_init(bio, 0); 1 Loading Loading @@ -257,7 +257,7 @@ cfg_if! { impl Drop for BIO_METHOD { fn drop(&mut self) { unsafe { Box::<ffi::BIO_METHOD>::from_raw(self.0); drop(Box::<ffi::BIO_METHOD>::from_raw(self.0)); } } } Loading
openssl/src/ssl/mod.rs +1 −1 Original line number Diff line number Diff line Loading @@ -558,7 +558,7 @@ unsafe extern "C" fn free_data_box<T>( _argp: *mut c_void, ) { if !ptr.is_null() { Box::<T>::from_raw(ptr as *mut T); drop(Box::<T>::from_raw(ptr as *mut T)); } } Loading