We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae67959 commit 4b81cb8Copy full SHA for 4b81cb8
openssl/src/ssl/bio.rs
@@ -183,7 +183,7 @@ unsafe extern "C" fn destroy<S>(bio: *mut BIO) -> c_int {
183
184
let data = BIO_get_data(bio);
185
assert!(!data.is_null());
186
- Box::<StreamState<S>>::from_raw(data as *mut _);
+ drop(Box::<StreamState<S>>::from_raw(data as *mut _));
187
BIO_set_data(bio, ptr::null_mut());
188
BIO_set_init(bio, 0);
189
1
openssl/src/ssl/mod.rs
@@ -558,7 +558,7 @@ unsafe extern "C" fn free_data_box<T>(
558
_argp: *mut c_void,
559
) {
560
if !ptr.is_null() {
561
- Box::<T>::from_raw(ptr as *mut T);
+ drop(Box::<T>::from_raw(ptr as *mut T));
562
}
563
564
0 commit comments